Skip to content

Commit

Permalink
chore: use Jest 27
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 29, 2021
1 parent 77e5b64 commit d88eb85
Show file tree
Hide file tree
Showing 4 changed files with 1,023 additions and 2,201 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 13.x, 14.x, 16.x]
jest-version: [24, 25, 26]
jest-version: [24, 25, 26, 27]
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion __tests__/buildJsonResults.test.js
Expand Up @@ -277,7 +277,7 @@ describe('buildJsonResults', () => {

// Mock Date.now() to return a fixed later value
const startDate = new Date(multiProjectNoFailingTestsReport.startTime);
spyOn(Date, 'now').and.returnValue(startDate.getTime() + 1234);
jest.spyOn(Date, 'now').mockImplementation(() => startDate.getTime() + 1234);

jsonResults = buildJsonResults(multiProjectNoFailingTestsReport, '/',
Object.assign({}, constants.DEFAULT_OPTIONS, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"xml": "^1.0.1"
},
"devDependencies": {
"jest": "26.0.1",
"jest": "^27.2.3",
"libxmljs": "^0.19.7"
}
}

0 comments on commit d88eb85

Please sign in to comment.