-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add custom resolver until Jest v28 is released * Bump eslint * Bump min version for unicorn * Remove eslint-plugin-eslint-comments * Update tests for v8
- Loading branch information
Showing
7 changed files
with
566 additions
and
1,527 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
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,12 @@ | ||
// TODO: Remove workaround for https://github.com/facebook/jest/issues/9771 | ||
// after Jest v28 is released. | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const enhancedResolve = require('enhanced-resolve'); | ||
|
||
const resolver = enhancedResolve.create.sync({ | ||
conditionNames: ['require', 'node', 'default'], | ||
extensions: ['.js', '.json'], | ||
mainFields: ['exports', 'main', 'require'], | ||
}); | ||
|
||
module.exports = (request, options) => resolver(options.basedir, request); |
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
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,3 @@ | ||
module.exports = { | ||
resolver: './export-maps-resolver.js', | ||
}; |
Oops, something went wrong.