diff --git a/cli/tests/testdata/lockfile/basic/bench.nolock.out b/cli/tests/testdata/lockfile/basic/bench.nolock.out index e81474f2ac..83e4de242b 100644 --- a/cli/tests/testdata/lockfile/basic/bench.nolock.out +++ b/cli/tests/testdata/lockfile/basic/bench.nolock.out @@ -1,6 +1,5 @@ Download http://localhost:4545/lockfile/basic/mod.ts Check file:///[WILDCARD]/main.bench.ts -5 cpu: [WILDCARD] runtime: [WILDCARD] diff --git a/cli/tests/testdata/lockfile/basic/main.bench.ts b/cli/tests/testdata/lockfile/basic/main.bench.ts index 2a74576801..918adde2fa 100644 --- a/cli/tests/testdata/lockfile/basic/main.bench.ts +++ b/cli/tests/testdata/lockfile/basic/main.bench.ts @@ -1,8 +1,8 @@ -import "./main.ts"; +import { getValue } from "mod"; Deno.bench("bench", () => { - const testing = 1 + 2; - if (testing !== 3) { + const testing = 1 + getValue(); + if (testing !== 6) { throw "FAIL"; } }); diff --git a/cli/tests/testdata/lockfile/basic/main.test.ts b/cli/tests/testdata/lockfile/basic/main.test.ts index bb757de239..fe45c799d1 100644 --- a/cli/tests/testdata/lockfile/basic/main.test.ts +++ b/cli/tests/testdata/lockfile/basic/main.test.ts @@ -1,8 +1,8 @@ -import "./main.ts"; +import { getValue } from "mod"; Deno.test("test", () => { - const testing = 1 + 2; - if (testing !== 3) { + const testing = 1 + getValue(); + if (testing !== 6) { throw "FAIL"; } }); diff --git a/cli/tests/testdata/lockfile/basic/main.ts b/cli/tests/testdata/lockfile/basic/main.ts index 5eed100f54..8d07c81537 100644 --- a/cli/tests/testdata/lockfile/basic/main.ts +++ b/cli/tests/testdata/lockfile/basic/main.ts @@ -1 +1,3 @@ -import "mod"; +import { getValue } from "mod"; + +console.log(getValue()); diff --git a/cli/tests/testdata/lockfile/basic/mod.ts b/cli/tests/testdata/lockfile/basic/mod.ts index 0f3785f910..358b4b09e5 100644 --- a/cli/tests/testdata/lockfile/basic/mod.ts +++ b/cli/tests/testdata/lockfile/basic/mod.ts @@ -1 +1,3 @@ -console.log(5); +export function getValue() { + return 5; +} diff --git a/cli/tests/testdata/lockfile/basic/test.nolock.out b/cli/tests/testdata/lockfile/basic/test.nolock.out index 3b59995132..bb62a81125 100644 --- a/cli/tests/testdata/lockfile/basic/test.nolock.out +++ b/cli/tests/testdata/lockfile/basic/test.nolock.out @@ -1,5 +1,4 @@ Download http://localhost:4545/lockfile/basic/mod.ts Check file:///[WILDCARD]/main.test.ts -5 running 1 test from ./main.test.ts [WILDCARD]