Skip to content

Commit 0c4c6b3

Browse files
authored
test: Resolves setupFiles instead of letting Jest handling it (#3201)
This would hopefully help to fix releasing: https://github.com/getsentry/sentry-cli/actions/runs/22871154749/job/66351058690 It is hard to tell as it works locally with every Node version. But it could be that when there is a `<rootDir>` it is resolved a little differently internally (it is resolved [here](https://github.com/jestjs/jest/blob/efb59c2e81083f8dc941f20d6d20a3af2dc8d068/packages/jest-runner/src/runTest.ts#L237))
1 parent a0e91bf commit 0c4c6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
collectCoverage: true,
33
testEnvironment: 'node',
4-
setupFiles: ['<rootDir>/setupTests.js'],
4+
setupFiles: [require.resolve('./setupTests.js')],
55
testPathIgnorePatterns: ['<rootDir>/src/', '<rootDir>/tests/integration/'],
66
transform: {
77
'^.+\\.ts$': 'ts-jest',

0 commit comments

Comments
 (0)