-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate importField.test.js to jest
- Loading branch information
Showing
2 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ImportsFieldPlugin should log the correct info 1`] = ` | ||
Array [ | ||
"resolve '#a/dist/index.js' in '...'", | ||
" using description file: .../package.json (relative path: .)", | ||
" resolve as internal import", | ||
" using imports field: a/dist/index.js", | ||
" Parsed request is a module", | ||
" using description file: .../package.json (relative path: .)", | ||
" resolve as module", | ||
" looking for modules in .../node_modules", | ||
" existing directory .../node_modules/a", | ||
" using description file: .../node_modules/a/package.json (relative path: .)", | ||
" using exports field: ./lib/lib2/index.js", | ||
" using description file: .../node_modules/a/package.json (relative path: ./lib/lib2/index.js)", | ||
" no extension", | ||
" .../node_modules/a/lib/lib2/index.js doesn't exist", | ||
" .js", | ||
" .../node_modules/a/lib/lib2/index.js.js doesn't exist", | ||
" as directory", | ||
" .../node_modules/a/lib/lib2/index.js doesn't exist", | ||
" using exports field: ./lib/index.js", | ||
" using description file: .../node_modules/a/package.json (relative path: ./lib/index.js)", | ||
" no extension", | ||
" existing file: .../node_modules/a/lib/index.js", | ||
" reporting result .../node_modules/a/lib/index.js", | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters