-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jest): read tsconfig for default jest transform options
- Loading branch information
1 parent
f34801d
commit 8c180e6
Showing
25 changed files
with
2,165 additions
and
2,464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
preset: '@swc-node/jest', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
testMatch: ['<rootDir>/packages/integrate/jest/**/*.test.ts'], | ||
testMatch: ['<rootDir>/packages/integrate/jest/**/*.test.ts', '<rootDir>/packages/integrate/jest/**/*.test.tsx'], | ||
testPathIgnorePatterns: ['<rootDir>/packages/jest'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,53 +19,53 @@ | |
], | ||
"private": true, | ||
"workspaces": ["packages/*"], | ||
"repository": "[email protected]:Brooooooklyn/swc-register.git", | ||
"author": "LongYinan <[email protected]>", | ||
"repository": "[email protected]:swc/swc-node.git", | ||
"author": "LongYinan <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"bench": "node -r @swc-node/register ./bench/index.ts", | ||
"build": "tsc -b tsconfig.project.json", | ||
"format": "prettier --config ./package.json . -w", | ||
"format": "prettier . -w", | ||
"lint": "eslint -c ./.eslintrc.yml \"packages/**/*.{js,ts,tsx}\"", | ||
"test": "ava", | ||
"test:jest": "jest --config jest.config.js", | ||
"version": "pnpm install && git add .", | ||
"postinstall": "husky install" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.16.10", | ||
"@babel/core": "^7.17.9", | ||
"@babel/plugin-transform-typescript": "^7.16.8", | ||
"@babel/preset-env": "^7.16.10", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@swc-node/core": "workspace:*", | ||
"@swc-node/jest": "workspace:*", | ||
"@swc-node/register": "workspace:*", | ||
"@types/babel__core": "^7.1.18", | ||
"@types/babel__core": "^7.1.19", | ||
"@types/benchmark": "^2.1.1", | ||
"@types/lodash": "^4.14.178", | ||
"@types/node": "^17.0.10", | ||
"@types/sinon": "^10.0.8", | ||
"@typescript-eslint/eslint-plugin": "^5.10.0", | ||
"@typescript-eslint/parser": "^5.10.0", | ||
"ava": "^4.0.1", | ||
"@types/lodash": "^4.14.182", | ||
"@types/node": "^17.0.29", | ||
"@types/sinon": "^10.0.11", | ||
"@typescript-eslint/eslint-plugin": "^5.21.0", | ||
"@typescript-eslint/parser": "^5.21.0", | ||
"ava": "^4.2.0", | ||
"benchmark": "^2.1.4", | ||
"colorette": "^2.0.16", | ||
"esbuild": "^0.14.11", | ||
"eslint": "^8.7.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"esbuild": "^0.14.38", | ||
"eslint": "^8.14.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"jest": "^27.4.7", | ||
"jest": "^28.0.2", | ||
"lerna": "^4.0.0", | ||
"lint-staged": "^12.2.1", | ||
"lint-staged": "^12.4.1", | ||
"lodash": "^4.17.21", | ||
"prettier": "^2.5.1", | ||
"react": "^17.0.2", | ||
"rxjs": "^7.5.2", | ||
"sinon": "^12.0.1", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.5.4" | ||
"prettier": "^2.6.2", | ||
"react": "^18.1.0", | ||
"rxjs": "^7.5.5", | ||
"sinon": "^13.0.2", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.6.3" | ||
}, | ||
"lint-staged": { | ||
"*.@(js|ts|tsx)": ["prettier --write"], | ||
|
@@ -78,8 +78,7 @@ | |
"semi": false, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"arrowParens": "always", | ||
"parser": "typescript" | ||
"arrowParens": "always" | ||
}, | ||
"ava": { | ||
"extensions": ["ts", "tsx"], | ||
|
Oops, something went wrong.