-
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.
test: write test in JavaScript (#108)
* test: map imported module from the distribution files * chore: remove @jest/globals, @types/jest, and ts-jest from dependencies * test: modify test files to JavaScript * test: remove `testMatch` option in Jest (redundant) * build: remove `tsconfig.eslint.json` * ci(test): set `--experimental-vm-modules` only on `Test Package` step instead
- Loading branch information
Showing
8 changed files
with
11 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,6 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [windows, ubuntu, macos] | ||
env: | ||
NODE_OPTIONS: --experimental-vm-modules | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -34,6 +32,8 @@ jobs: | |
|
||
- name: Test Package | ||
run: yarn test | ||
env: | ||
NODE_OPTIONS: --experimental-vm-modules | ||
|
||
test-action: | ||
name: Test Action | ||
|
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 |
---|---|---|
|
@@ -5,16 +5,14 @@ | |
"scripts": { | ||
"bundle": "tsc && ncc build dist/main.mjs -o main", | ||
"check": "sort-package-json && prettier --write . !main !README.md && eslint src", | ||
"test": "jest" | ||
"test": "tsc && jest" | ||
}, | ||
"dependencies": { | ||
"@actions/core": "^1.10.1", | ||
"@actions/exec": "^1.1.1", | ||
"@actions/io": "^1.1.3" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@types/jest": "^29.5.10", | ||
"@types/node": "^20.10.4", | ||
"@typescript-eslint/eslint-plugin": "^6.13.2", | ||
"@typescript-eslint/parser": "^6.13.2", | ||
|
@@ -25,7 +23,6 @@ | |
"jest": "^29.7.0", | ||
"prettier": "^3.1.0", | ||
"sort-package-json": "^2.6.0", | ||
"ts-jest": "^29.1.1", | ||
"typescript": "^5.3.3" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
File renamed without changes.
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 |
---|---|---|
|
@@ -12,6 +12,5 @@ | |
"target": "ES2022", | ||
"skipLibCheck": true | ||
}, | ||
"include": ["src"], | ||
"exclude": ["**/*.test.*"] | ||
"include": ["src"] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.