Skip to content

Commit

Permalink
test: convert e2e to use Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 9, 2024
1 parent 84235a9 commit 46ce163
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 3,705 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"types": "./lib/index.d.ts",
"scripts": {
"test": "bun test",
"test:e2e": "node tests/test-e2e",
"test:e2e": "bun tests/test-e2e.ts",
"format": "bunx --bun prettier --write \"{src,tests,playground}/**/*.{js,ts,svelte,md}\" --ignore-path \".gitignore\"",
"build": "bunx --bun tsc"
},
Expand Down
Binary file added tests/e2e/carbon/bun.lockb
Binary file not shown.
499 changes: 0 additions & 499 deletions tests/e2e/carbon/yarn.lock

This file was deleted.

Binary file added tests/e2e/glob/bun.lockb
Binary file not shown.
452 changes: 0 additions & 452 deletions tests/e2e/glob/yarn.lock

This file was deleted.

Binary file added tests/e2e/multi-export-typed-ts-only/bun.lockb
Binary file not shown.
452 changes: 0 additions & 452 deletions tests/e2e/multi-export-typed-ts-only/yarn.lock

This file was deleted.

Binary file added tests/e2e/multi-export-typed/bun.lockb
Binary file not shown.
452 changes: 0 additions & 452 deletions tests/e2e/multi-export-typed/yarn.lock

This file was deleted.

Binary file added tests/e2e/multi-export/bun.lockb
Binary file not shown.
452 changes: 0 additions & 452 deletions tests/e2e/multi-export/yarn.lock

This file was deleted.

Binary file added tests/e2e/multi-folders/bun.lockb
Binary file not shown.
452 changes: 0 additions & 452 deletions tests/e2e/multi-folders/yarn.lock

This file was deleted.

Binary file added tests/e2e/single-export-default-only/bun.lockb
Binary file not shown.
452 changes: 0 additions & 452 deletions tests/e2e/single-export-default-only/yarn.lock

This file was deleted.

Binary file added tests/e2e/single-export/bun.lockb
Binary file not shown.
452 changes: 0 additions & 452 deletions tests/e2e/single-export/yarn.lock

This file was deleted.

41 changes: 0 additions & 41 deletions tests/test-e2e.js

This file was deleted.

17 changes: 17 additions & 0 deletions tests/test-e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Glob, $ } from "bun";
import { name } from "../package.json";

await $`bun link`;

const dirs = new Glob("*").scanSync({
cwd: "tests/e2e",
onlyFiles: false,
absolute: true,
});

for await (const dir of dirs) {
await $`cd ${dir} && rm -rf types`;
await $`cd ${dir} && bun link ${name}`;
await $`cd ${dir} && bun install`;
await $`cd ${dir} && bun run build`;
}

0 comments on commit 46ce163

Please sign in to comment.