Skip to content

Commit

Permalink
fix: ignore fixture in unsupported scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
bohjak committed Sep 24, 2024
1 parent 75a4692 commit 10299fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/bun.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ for (const fixture of fixtures) {
if (
fixture === "error-runtime" ||
fixture === "error-parse" ||
fixture === "typescript"
fixture === "typescript" ||
fixture === "data-uri"
) {
continue;
}
Expand Down
7 changes: 6 additions & 1 deletion test/native/bun.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ const fixtures = await readdir(new URL("../fixtures", import.meta.url));

const jiti = createJiti(import.meta.url, { importMeta: import.meta });

const ignore = new Set(["error-runtime", "error-parse", "typescript"]);
const ignore = new Set([
"error-runtime",
"error-parse",
"typescript",
"data-uri",
]);

for (const fixture of fixtures) {
if (ignore.has(fixture)) {
Expand Down
1 change: 1 addition & 0 deletions test/native/deno.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ignore = new Set(
"top-level-await",
"exotic",
"circular",
"data-uri",
"import-map",
].filter(Boolean),
);
Expand Down
1 change: 1 addition & 0 deletions test/native/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ignore = new Set(
"top-level-await",
"exotic",
"circular",
"data-uri",
].filter(Boolean),
);

Expand Down

0 comments on commit 10299fc

Please sign in to comment.