Skip to content

Commit

Permalink
test: update tests to be spec and with the source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed May 1, 2022
1 parent 98a7ad9 commit b05e926
Show file tree
Hide file tree
Showing 9 changed files with 294 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module",
"project": "./tsconfig.lint.json"
"project": "./tsconfig.json"
},
"env": {
"node": true,
Expand Down
11 changes: 0 additions & 11 deletions jest.config.js

This file was deleted.

20 changes: 20 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Config } from "@jest/types";

const config: Config.InitialOptions = {
clearMocks: true,
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
},
},
moduleFileExtensions: ["js", "ts"],
testEnvironment: "node",
testRunner: "jest-circus/runner",
transform: {
"^.+\\.ts$": "ts-jest",
},
testRegex: "\\.spec\\.[jt]s$",
verbose: true,
};

export default config;
232 changes: 232 additions & 0 deletions package-lock.json

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

Loading

0 comments on commit b05e926

Please sign in to comment.