Skip to content

Commit

Permalink
Fix Cypress typings
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Jul 15, 2024
1 parent 55530e0 commit 9c4d128
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/bugs/348.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
/*
* @see https://github.com/kamilmielnik/scrabble-solver/issues/348
*/
describe('asd', () => {
describe('#348', () => {
beforeEach(async () => {
await unregisterServiceWorkers();
});
Expand Down
4 changes: 1 addition & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
const tsConfig = require('./tsconfig.jest.json');

module.exports = {
coveragePathIgnorePatterns: ['/node_modules/', '/build/'],
preset: 'ts-jest',
setupFilesAfterEnv: ['./jest.setup.js'],
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/cypress/'],
transform: {
'^.+.tsx?$': ['ts-jest', tsConfig],
'^.+.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.jest.json' }],
},
};
3 changes: 2 additions & 1 deletion tsconfig.jest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

"compilerOptions": {
"jsx": "react"
}
},
"exclude": ["cypress", "./cypress", "./cypress.config.ts"]
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
"noUnusedParameters": true,
"strict": true,
"target": "es2021"
},
"exclude": ["cypress", "./cypress", "./cypress.config.ts"]
}
}

0 comments on commit 9c4d128

Please sign in to comment.