Skip to content

Commit

Permalink
test: fix jest warning - Haste module naming collision
Browse files Browse the repository at this point in the history
  • Loading branch information
webdiscus committed Nov 14, 2023
1 parent c2197fd commit b11452a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,9 @@
"types": "./src/index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.js"
},
"./colors": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.js"
"types": "./src/index.d.ts",
"import": "./src/index.mjs",
"require": "./src/index.js"
}
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ module.exports = {

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
modulePathIgnorePatterns: ['./pkg'],

// An alternative API to setting the NODE_PATH env variable, modulePaths is an array of absolute paths to additional locations to search when resolving modules.
// modulePaths: [],
Expand Down

0 comments on commit b11452a

Please sign in to comment.