Skip to content

Commit a8556e4

Browse files
refactor: tests (#53)
1 parent 0e894a5 commit a8556e4

File tree

10 files changed

+13
-2
lines changed

10 files changed

+13
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
with:
3131
flags: integration
3232
token: ${{ secrets.CODECOV_TOKEN }}
33-
- run: node ./validation/my-other-code.ts && node ./validation/my-other-code.ts && node ./validation/my-other-code.ts
33+
- run: node ./validation/typescript-node-support/my-other-code.ts && node ./validation/typescript-node-support/my-other-code.cts && node ./validation/typescript-node-support/my-other-code.mts
3434
if: matrix.node-version == '24.x'

configs/jest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ async function getJestRecommendedConfig() {
2626
"**/{tests,test,__tests__}/**/*.?(c|m)[jt]s?(x)",
2727
"**/?(*.)+(spec|test).[jt]s?(x)",
2828
"**/test-*.[jt]s?(x)",
29-
"{setupTest,setup-test}.{js,cjs,mjs,ts,cts,mjs}",
3029
],
3130
ignores: [
3231
"**/{tests,test,__tests__}/**/{helper,helpers,__helper__,__helpers__,fixture,fixtures,__fixture__,__fixtures__}/**/*",

validation/module-package/file.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@ function sum(a, b) {
1919
sum(foo, bar);
2020
sum(a, b);
2121
sum(otherMod.a, otherMod.b);
22+
23+
/**
24+
* @returns {Promise<void>} run
25+
*/
26+
async function run() {
27+
// Nothing
28+
}
29+
30+
await run();

validation/my-ts-code.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import otherSum from "./my-module.ts";
66
import otherSumAgain from "./my-module";
77
import { b as otherB, type MyType } from "./other-module.js";
88

9+
require("./typescript-node-support/my-other-code.ts");
10+
require("./typescript-node-support/my-other-code.js");
11+
912
sum(a, b);
1013
otherSum(a, b);
1114
otherSumAgain(a, b);
File renamed without changes.

0 commit comments

Comments
 (0)