Skip to content

Commit 686fb6a

Browse files
committed
chore: update and fix test
1 parent 374196f commit 686fb6a

File tree

5 files changed

+14
-19
lines changed

5 files changed

+14
-19
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"jsonc-eslint-parser": "^2.0.3",
5050
"npm-run-all": "^4.1.5",
5151
"prettier": "^3.4.2",
52-
"rimraf": "^3.0.2",
5352
"ts-node": "^10.9.2",
5453
"tsdown": "^0.12.9",
5554
"typescript": "~5.7.3",

test/integrations.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ const FIXTURE_DIR = path.join(__dirname, "fixtures/integrations")
2222

2323
describe("Integration tests", () => {
2424
beforeAll(async () => {
25-
await import("ts-node/register")
25+
const { register } = await import("ts-node")
26+
register({
27+
transpileOnly: true,
28+
compilerOptions: {
29+
module: "commonjs",
30+
moduleResolution: "node",
31+
},
32+
})
2633
})
2734
for (const target of fs.readdirSync(FIXTURE_DIR)) {
2835
it(target, async () => {

tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"module": "preserve",
1414
"moduleResolution": "bundler",
1515
"newLine": "LF",
16-
"noEmitOnError": true,
16+
"noEmit": true,
1717
"noFallthroughCasesInSwitch": true,
1818
"noImplicitAny": true,
1919
"noImplicitReturns": true,
@@ -30,6 +30,5 @@
3030

3131
"skipLibCheck": true
3232
},
33-
"include": ["src/**/*.ts", "tsdown.config.ts"],
34-
"references": [{ "path": "./tsconfig.test.json" }]
33+
"include": ["**/*.ts"]
3534
}

tsconfig.test.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

tsdown.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { defineConfig } from "tsdown"
22

3-
const banner = `/**
3+
const banner = `
4+
/**
45
* @author Toru Nagashima <https://github.com/mysticatea>
56
* See LICENSE file in root directory for full license.
6-
*/`
7+
*/
8+
`.trim()
79

810
export default defineConfig({
911
entry: "./src/index.ts",

0 commit comments

Comments
 (0)