Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used relative paths in haste map #7020

Merged
merged 6 commits into from
Oct 2, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Used relative paths in haste map
  • Loading branch information
rubennorte committed Sep 24, 2018
commit 3181917a36edd0bb3e24a5696d557d6c7c3ed43f
1 change: 1 addition & 0 deletions e2e/__tests__/haste_map_sha1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ test('exits the process after test are done but before timers complete', async (
name: 'tmp',
platforms: ['ios', 'android'],
retainAllFiles: true,
rootDir: DIR,
roots: [DIR],
useWatchman: false,
watch: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
exports[`HasteMap file system changes processing recovery from duplicate module IDs recovers when the most recent duplicate is fixed 1`] = `
"The name \`Pear\` was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or blacklist files until there remains only one of these:

* \`/fruits/blueberry.js\` (module)
* \`/fruits/pear.js\` (module)
* \`/project/fruits/blueberry.js\` (module)
* \`/project/fruits/pear.js\` (module)
"
`;

exports[`HasteMap file system changes processing recovery from duplicate module IDs recovers when the oldest version of the duplicates is fixed 1`] = `
"The name \`Pear\` was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or blacklist files until there remains only one of these:

* \`/fruits/blueberry.js\` (module)
* \`/fruits/pear.js\` (module)
* \`/project/fruits/blueberry.js\` (module)
* \`/project/fruits/pear.js\` (module)
"
`;

exports[`HasteMap throws on duplicate module ids if "throwOnModuleCollision" is set to true 1`] = `
[Error: jest-haste-map: @providesModule naming collision:
Duplicate module name: Strawberry
Paths: /fruits/raspberry.js collides with /fruits/strawberry.js
Paths: /project/fruits/raspberry.js collides with /project/fruits/strawberry.js

This error is caused by a @providesModule declaration with the same name across two different files.]
`;
Expand All @@ -33,21 +33,21 @@ exports[`HasteMap tries to crawl using node as a fallback 1`] = `
exports[`HasteMap warns on duplicate mock files 1`] = `
"jest-haste-map: duplicate manual mock found:
Module name: subdir/blueberry
Duplicate Mock path: /fruits2/__mocks__/subdir/blueberry.js
Duplicate Mock path: /project/fruits2/__mocks__/subdir/blueberry.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
/fruits2/__mocks__/subdir/blueberry.js
/project/fruits2/__mocks__/subdir/blueberry.js
Please delete one of the following two files:
/fruits1/__mocks__/subdir/blueberry.js
/fruits2/__mocks__/subdir/blueberry.js
/project/fruits1/__mocks__/subdir/blueberry.js
/project/fruits2/__mocks__/subdir/blueberry.js

"
`;

exports[`HasteMap warns on duplicate module ids 1`] = `
"jest-haste-map: @providesModule naming collision:
Duplicate module name: Strawberry
Paths: /fruits/raspberry.js collides with /fruits/strawberry.js
Paths: /project/fruits/raspberry.js collides with /project/fruits/strawberry.js

This warning is caused by a @providesModule declaration with the same name across two different files."
`;
Loading