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
This commit is contained in:
Alfi Maulana
2023-12-11 19:38:06 +07:00
committed by GitHub
parent ad6a9d3164
commit 96089ee386
8 changed files with 11 additions and 93 deletions

View File

@@ -5,7 +5,7 @@
"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",
@@ -13,8 +13,6 @@
"@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": "yarn@4.0.2"