Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,8 @@ async function runTestTools() {
}

async function runTestAPI() {
await $`npm run -w @typescript/native-preview test:only`;
// await $`npm run -w @typescript/native-preview test:only`; // doesn't work on windows - some path escaping isn't done correctly, test runner runs no tests
await _$({ verbose: "short", stdio: "inherit", cwd: "./_packages/native-preview" })`node --experimental-strip-types --no-warnings --conditions @typescript/source --test ./test/**/*.test.ts`;
}

export const testTools = task({
Expand Down
2 changes: 1 addition & 1 deletion _packages/native-preview/test/async/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe("API", () => {
assert.deepEqual(commandLine.fileNames, ["/src/index.ts"]);
assert.equal(commandLine.options.strict, true);
assert.equal(
commandLine.options.outDir,
resolve(commandLine.options.outDir!),
resolve(fileURLToPath(new URL("../../../../", import.meta.url)), "dist"),
);
assert.deepEqual(commandLine.raw, {
Expand Down
2 changes: 1 addition & 1 deletion _packages/native-preview/test/sync/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe("API", () => {
assert.deepEqual(commandLine.fileNames, ["/src/index.ts"]);
assert.equal(commandLine.options.strict, true);
assert.equal(
commandLine.options.outDir,
resolve(commandLine.options.outDir!),
resolve(fileURLToPath(new URL("../../../../", import.meta.url)), "dist"),
);
assert.deepEqual(commandLine.raw, {
Expand Down