Skip to content

Commit

Permalink
chore: bump jest and use mjs (#422)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>
  • Loading branch information
imranbarbhuiya and favna authored May 4, 2022
1 parent 1f048e3 commit 210481a
Show file tree
Hide file tree
Showing 7 changed files with 516 additions and 457 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ LICENSE.md @kyranet @favna @vladfrangu
/.vscode/ @favna
/.all-contributorsrc @favna
.npm-deprecaterc.yml @favna
jest.config.ts @favna
jest.config.mjs @favna
package.json @favna
README.md @favna
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dist/
**/*.d.ts
!src/**/*.d.ts
**/*.tsbuildinfo
!jest.config.ts
!jest.config.mjs
!scripts/*.mjs

# Ignore heapsnapshot and log files
Expand Down
15 changes: 15 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
displayName: 'unit test',
preset: 'ts-jest',
testMatch: ['<rootDir>/tests/**/*.test.ts'],
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tests/tsconfig.json'
}
},
reporters: ['default', 'github-actions']
};

export default config;
15 changes: 0 additions & 15 deletions jest.config.ts

This file was deleted.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,14 @@
"eslint-plugin-prettier": "^4.0.0",
"gen-esm-wrapper": "^1.1.3",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest-circus": "^27.5.1",
"jest": "^28.0.2",
"lint-staged": "^12.4.1",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"rollup": "^2.71.1",
"rollup-plugin-version-injector": "^1.3.3",
"standard-version": "^9.3.2",
"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
"ts-jest": "^28.0.0",
"typedoc": "^0.22.15",
"typedoc-plugin-djs-links": "^1.0.4",
"typedoc-plugin-mdn-links": "^1.0.6",
Expand Down Expand Up @@ -116,9 +114,7 @@
},
"resolutions": {
"ansi-regex": "^5.0.1",
"minimist": "^1.2.6",
"jest-environment-jsdom": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.3.tgz",
"jest-jasmine2": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.3.tgz"
"minimist": "^1.2.6"
},
"prettier": "@sapphire/prettier-config",
"packageManager": "yarn@3.2.0"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.base.json",
"include": ["src", "tests", "jest.config.ts", "rollup.config.ts", "scripts"]
"include": ["src", "tests", "jest.config.mjs", "rollup.config.ts", "scripts"]
}
Loading

0 comments on commit 210481a

Please sign in to comment.