diff --git a/next-stitches-typescript/jest.config.js b/next-stitches-typescript/jest.config.js index 07d22c3..e97d8f9 100644 --- a/next-stitches-typescript/jest.config.js +++ b/next-stitches-typescript/jest.config.js @@ -16,4 +16,5 @@ module.exports = { }, }, }, + setupFilesAfterEnv: ['/jest.setup.js'] } diff --git a/next-stitches-typescript/jest.setup.js b/next-stitches-typescript/jest.setup.js new file mode 100644 index 0000000..6d9a11f --- /dev/null +++ b/next-stitches-typescript/jest.setup.js @@ -0,0 +1,2 @@ +import { styled } from './stitches.config' +global._styled = styled \ No newline at end of file