Skip to content

Commit f6765cd

Browse files
authored
chore: avoid getIncludeFiles test deps on src folder structure (#37)
1 parent 4eeb963 commit f6765cd

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

tests/ts/test/utils/path.test.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ test("findRoot", () => {
2828
});
2929

3030
test("getIncludeFiles", () => {
31-
expect(getIncludeFiles(["src/core"], (s) => s.endsWith(".ts"))).toEqual([
32-
path.normalize("src/core/compile.ts"),
33-
path.normalize("src/core/execute.ts"),
34-
path.normalize("src/core/instrument.ts"),
35-
path.normalize("src/core/precompile.ts"),
36-
]);
37-
expect(getIncludeFiles(["tests/ts/fixture/transformFunction.ts"], (s) => s.endsWith(".ts"))).toEqual([
38-
path.normalize("tests/ts/fixture/transformFunction.ts"),
31+
expect(getIncludeFiles(["tests/ts/test/utils/resources"], (s) => s.endsWith(".resource"))).toEqual([
32+
path.normalize("tests/ts/test/utils/resources/a.resource"),
33+
path.normalize("tests/ts/test/utils/resources/b.resource"),
3934
]);
4035
});

tests/ts/test/utils/resources/a.resource

Whitespace-only changes.

tests/ts/test/utils/resources/b.resource

Whitespace-only changes.

0 commit comments

Comments
 (0)