Skip to content

Commit

Permalink
test: fix aborted tests (#13)
Browse files Browse the repository at this point in the history
* test: fix ERR_UNKNOWN_FILE_EXTENSION

* test: fix TS2834

* test: fix TS5097

* test: drop unnecessary steps
  • Loading branch information
otariidae authored Jan 21, 2024
1 parent 4414e73 commit 6c4eaf9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -25,5 +25,4 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prebuild": "npm run clean",
"build": "tsc && tsc -p tsconfig.cjs.json && ts-node scripts/generate_cjs_pkgjson.ts",
"prettier": "prettier --no-semi --tab-width 2 --write \"**/*.ts\"",
"test": "node --test --require ts-node/register \"test/index.ts\""
"test": "node --test --loader ts-node/esm \"test/index.ts\""
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from "node:test"
import { strict as assert } from "assert"
import { ke2dairanization } from "../src"
import { ke2dairanization } from "../src/index.ts"

test("test words", async (t) => {
await t.test("松平 健", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
"allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
Expand Down

0 comments on commit 6c4eaf9

Please sign in to comment.