Skip to content

Commit a753b31

Browse files
committed
test: rewrite tests in ESM TypeScript
1 parent f1e21bf commit a753b31

File tree

8 files changed

+448
-94
lines changed

8 files changed

+448
-94
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ spec/fixtures/aminya
1818
spec/fixtures/steelbrain
1919

2020
*.tar.gz
21+
*.tgz

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
package-lock=false
22
lockfile=true
3+
public-hoist-pattern[]=*@types/*
4+
public-hoist-pattern[]=axios

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "eslint ./ --ignore dist --fix",
2323
"prepare": "pnpm run build",
2424
"prepublishOnly": "pnpm run clean && pnpm run build",
25-
"test": "node ./spec/test.cjs",
25+
"test": "tsx ./spec/test.mts",
2626
"test.format": "prettier . --check",
2727
"test.lint": "eslint . --ignore-pattern spec/fixtures/**"
2828
},
@@ -62,17 +62,20 @@
6262
"@types/eslint-config-prettier": "^6.11.3",
6363
"@types/eslint__js": "^8.42.3",
6464
"@types/execa": "^2.0.0",
65+
"@types/fs-extra": "~11.0.4",
6566
"@types/node": "^22.13.13",
6667
"@types/read-pkg-up": "^6.0.0",
6768
"@types/semver": "^7.7.0",
6869
"@types/shelljs": "^0.8.15",
6970
"eslint-config-atomic": "link:",
7071
"execa": "^5.1.1",
72+
"fs-extra": "^11.3.0",
7173
"gitly": "^3.1.0",
7274
"npm-check-updates": "17.1.16",
7375
"prettier-config-atomic": "^4.0.0",
7476
"shelljs": "^0.9.2",
75-
"shx": "^0.4.0"
77+
"shx": "^0.4.0",
78+
"tsx": "^4.19.3"
7679
},
7780
"peerDependencies": {
7881
"eslint": "^8 || ^7 || ^6"

0 commit comments

Comments
 (0)