Skip to content

Instantly share code, notes, and snippets.

@transcendr
Created December 22, 2023 05:49
Show Gist options
  • Save transcendr/69823e00c865618b9aae7a2b9ec51bdb to your computer and use it in GitHub Desktop.
Save transcendr/69823e00c865618b9aae7a2b9ec51bdb to your computer and use it in GitHub Desktop.
config:
module.exports = {
preset: "ts-jest",
testEnvironment: "jsdom",
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
},
},
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
};
error:
● Validation Error:
Module @testing-library/jest-dom/extend-expect in the setupFilesAfterEnv option was not found.
<rootDir> is: /Users/bryan/Code/blue/reflection-app-affiliate-web
Configuration Documentation:
https://jestjs.io/docs/configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment