Skip to content

Commit

Permalink
test: re-enable Jest globals injection (#223)
Browse files Browse the repository at this point in the history
* test: enable Jest globals injections

* chore: remove @jest/globals from dependencies
  • Loading branch information
threeal authored Nov 30, 2023
1 parent a08c31a commit 9ce5637
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"tsdoc/syntax": "error"
}
},
{
"files": ["**/*.test.*"],
"env": {
"jest": true
}
},
{
"files": ["package.json"],
"plugins": ["json-files"],
Expand Down
1 change: 0 additions & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"statements": 100
}
},
"injectGlobals": false,
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.mjs$": "<rootDir>/dist/$1.mjs"
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"yargs": "^17.7.2"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/node": "^20.10.0",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^6.13.1",
Expand Down
1 change: 0 additions & 1 deletion src/sequence.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { it, expect } from "@jest/globals";
import { fibonacciSequence } from "./sequence.mjs";

it("should generate a fibonacci sequence", () => {
Expand Down
1 change: 0 additions & 1 deletion yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ce5637

Please sign in to comment.