-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor] rewrite Core Logic for new Test scripts
[add] VS Code debugger configuration [optimize] upgrade Jest & GitHub actions configuration [remove] JSDOM patch file
- Loading branch information
Showing
14 changed files
with
365 additions
and
491 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,5 +1 @@ | ||
#!/bin/sh | ||
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm test |
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,5 +1 @@ | ||
#!/bin/sh | ||
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run build |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Jest", | ||
"type": "node", | ||
"request": "launch", | ||
"port": 9229, | ||
"runtimeArgs": [ | ||
"--inspect-brk", | ||
"${workspaceRoot}/node_modules/jest/bin/jest.js", | ||
"--runInBand" | ||
], | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { JestConfigWithTsJest } from 'ts-jest'; | ||
|
||
const config: JestConfigWithTsJest = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
testMatch: ['**/__tests__/**/*.test.ts'], | ||
testPathIgnorePatterns: ['/node_modules/', '/dist/'] | ||
}; | ||
export default config; |
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,59 +1,57 @@ | ||
{ | ||
"name": "event-submitter-polyfill", | ||
"version": "0.3.2", | ||
"description": "A polyfill for submitter property of form Submit Event, which is written in TypeScript.", | ||
"keywords": [ | ||
"submitter", | ||
"submit", | ||
"polyfill", | ||
"form", | ||
"event", | ||
"typescript" | ||
], | ||
"author": "1101077695@qq.com", | ||
"contributors": [ | ||
"shiy2008@gmail.com" | ||
], | ||
"license": "LGPL-3.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"source": "source/index.ts", | ||
"homepage": "https://github.com/idea2app/event-submitter-polyfill#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/idea2app/event-submitter-polyfill.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/idea2app/event-submitter-polyfill/issues" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"husky": "^9.1.4", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"lint-staged": "^15.2.7", | ||
"patch-package": "^6.5.1", | ||
"postinstall-postinstall": "^2.1.0", | ||
"prettier": "^3.3.3", | ||
"ts-jest": "^29.2.4", | ||
"typescript": "^5.5.4" | ||
}, | ||
"resolutions": { | ||
"jsdom": "20.0.3" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"arrowParens": "avoid", | ||
"tabWidth": 4 | ||
}, | ||
"lint-staged": { | ||
"*.{md,ts,json}": "prettier --write" | ||
}, | ||
"scripts": { | ||
"prepare": "husky install", | ||
"test": "jest && lint-staged", | ||
"build": "tsc", | ||
"prepublishOnly": "npm test && npm run build" | ||
} | ||
"name": "event-submitter-polyfill", | ||
"version": "0.4.0", | ||
"description": "A polyfill for submitter property of form Submit Event, which is written in TypeScript.", | ||
"keywords": [ | ||
"submitter", | ||
"submit", | ||
"polyfill", | ||
"form", | ||
"event", | ||
"typescript" | ||
], | ||
"author": "1101077695@qq.com", | ||
"contributors": [ | ||
"shiy2008@gmail.com" | ||
], | ||
"license": "LGPL-3.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"source": "source/index.ts", | ||
"homepage": "https://github.com/idea2app/event-submitter-polyfill#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/idea2app/event-submitter-polyfill.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/idea2app/event-submitter-polyfill/issues" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"husky": "^9.1.4", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"lint-staged": "^15.2.7", | ||
"prettier": "^3.3.3", | ||
"ts-jest": "^29.2.4", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.5.4" | ||
}, | ||
"resolutions": { | ||
"jsdom": "20.0.3" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"arrowParens": "avoid" | ||
}, | ||
"lint-staged": { | ||
"*.{md,ts,json}": "prettier --write" | ||
}, | ||
"scripts": { | ||
"prepare": "husky", | ||
"test": "lint-staged && jest", | ||
"build": "tsc", | ||
"prepublishOnly": "npm test && npm run build" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.