Skip to content

Commit 132b8f0

Browse files
committed
refactor: use local func for path resolution
- similar to the unit test suite - also remove the `.only` that I was using during development
1 parent 9116503 commit 132b8f0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

__tests__/integration/index.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { test, expect } from "@jest/globals";
2+
import * as path from "path";
23
import { rollup } from "rollup";
34

45
import rpt2 from "../../src/index";
56

6-
test.only("integration - no error case", async () => {
7+
const local = (x: string) => path.resolve(__dirname, x);
8+
9+
test("integration - no error case", async () => {
710
const bundle = await rollup({
8-
input: "./__tests__/integration/fixtures/no-errors/index.ts",
11+
input: local("fixtures/no-errors/index.ts"),
912
plugins: [rpt2({
10-
tsconfig: "./__tests__/integration/fixtures/tsconfig.json",
13+
tsconfig: local("fixtures/tsconfig.json"),
1114
})],
1215
});
1316

0 commit comments

Comments
 (0)