There was an error while loading. Please reload this page.
361e1fc
chalk@5 is published as ESM, and that breaks jest.
chalk@5
jest
Need to add this to jest.config.js:
jest.config.js
{ moduleNameMapper: { '#(.*)': '<rootDir>/node_modules/$1' // needed for `chalk` getting `#ansi-styles` }, transformIgnorePatterns: [ 'node_modules/(?!(@unional\\fixture|chalk)/)' ] }
{ moduleNameMapper: { '#(.*)': '<rootDir>/node_modules/$1' // needed for `chalk` getting `#ansi-styles` }, transformIgnorePatterns: [ 'node_modules/(?!(@unional\\fixture|chalk)/)' ] }