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
151 changes: 0 additions & 151 deletions bench/cojson/colist.load.bench.ts

This file was deleted.

145 changes: 0 additions & 145 deletions bench/cojson/comap.create.bench.ts

This file was deleted.

11 changes: 0 additions & 11 deletions examples/durable-object/vitest.config.mts

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@
"@changesets/cli": "^2.29.7",
"@playwright/test": "^1.50.1",
"@vitejs/plugin-react": "^4.5.1",
"@vitest/browser": "catalog:default",
"@vitest/coverage-istanbul": "catalog:default",
"@vitest/browser-playwright": "catalog:default",
"@vitest/coverage-v8": "catalog:default",
"@vitest/ui": "catalog:default",
"happy-dom": "^17.4.4",
"jazz-run": "workspace:*",
"jazz-tools": "workspace:*",
"jazz-tools-codemod-0-18": "workspace:*",
"lefthook": "^1.8.2",
"pkg-pr-new": "^0.0.60",
"playwright": "^1.50.1",
Expand Down
34 changes: 15 additions & 19 deletions packages/codemod-upgrade-0-19/tests/codemod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,21 @@ import { fileURLToPath } from "node:url";

const currentDir = fileURLToPath(new URL(".", import.meta.url));

test(
"runTransform",
() => {
const fixturesBefore = readFileSync(
`${currentDir}/fixtures/test-example.tsx`,
"utf-8",
);
runTransform(`${currentDir}/fixtures`);
test("runTransform", () => {
const fixturesBefore = readFileSync(
`${currentDir}/fixtures/test-example.tsx`,
"utf-8",
);
runTransform(`${currentDir}/fixtures`);

const result = readFileSync(
`${currentDir}/fixtures/test-example.tsx`,
"utf-8",
);
const result = readFileSync(
`${currentDir}/fixtures/test-example.tsx`,
"utf-8",
);

onTestFinished(() => {
writeFileSync(`${currentDir}/fixtures/test-example.tsx`, fixturesBefore);
});
onTestFinished(() => {
writeFileSync(`${currentDir}/fixtures/test-example.tsx`, fixturesBefore);
});

expect(result).toMatchSnapshot();
},
{ timeout: 20000 },
);
expect(result).toMatchSnapshot();
}, 20_000);
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export default defineProject({
test: {
name: "cloudflare-do-storage",
testTimeout: 10_000,
include: ["*.test.ts"],
},
});
2 changes: 1 addition & 1 deletion packages/cojson-storage-do-sqlite/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"declaration": true,
"declarationMap": true
},
"include": ["./src/**/*"]
"include": ["./src/index.ts"]
}
4 changes: 3 additions & 1 deletion packages/cojson-storage-indexeddb/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { defineProject } from "vitest/config";
import { playwright } from "@vitest/browser-playwright";

export default defineProject({
test: {
name: "cojson-storage-indexeddb",
browser: {
enabled: true,
provider: "playwright",
provider: playwright(),
instances: [{ browser: "chromium", headless: true }],
},
include: ["src/**/*.test.ts"],
},
});
Loading
Loading