Skip to content

Commit 9797d24

Browse files
committed
WIP
1 parent df90881 commit 9797d24

444 files changed

Lines changed: 3817 additions & 21926 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

e2e-vitest-browser-migration.md

Lines changed: 237 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"deploy": "echo not working:(",
2323
"gen": "vp run --filter @blocknote/dev-scripts gen",
2424
"install-playwright": "cd tests && vp exec playwright install --with-deps",
25-
"e2e": "concurrently --success=first -r --kill-others \"vp run start\" \"wait-on http://localhost:3000 && cd tests && vp exec playwright test $PLAYWRIGHT_CONFIG\"",
26-
"e2e:updateSnaps": "concurrently --success=first -r --kill-others \"vp run start\" \"wait-on http://localhost:3000 && cd tests && vp run test:updateSnaps\"",
25+
"e2e": "vp run -r build && cd tests && vp test -c vite.config.browser.ts --run",
26+
"e2e:updateSnaps": "vp run -r build && cd tests && vp test -c vite.config.browser.ts --run -u",
2727
"lint": "vp lint",
2828
"postpublish": "rm -rf packages/core/README.md && rm -rf packages/react/README.md",
2929
"prebuild": "cp README.md packages/core/README.md && cp README.md packages/react/README.md",

pnpm-lock.yaml

Lines changed: 360 additions & 468 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
"version": "0.30.0",
55
"scripts": {
66
"lint": "vp lint src",
7-
"playwright": "playwright test",
87
"test": "vp test --run",
9-
"test:updateSnaps": "docker run --rm -e RUN_IN_DOCKER=true --network host -v $(pwd)/..:/work/ -w /work/tests -it mcr.microsoft.com/playwright:v1.51.1-noble npx playwright test",
10-
"test-ct": "playwright test -c playwright-ct.config.ts --headed",
11-
"test-ct:updateSnaps": "docker run --rm -e RUN_IN_DOCKER=true --network host -v $(pwd)/..:/work/ -w /work/tests -it mcr.microsoft.com/playwright:v1.51.1-noble npx playwright test -c playwright-ct.config.ts -u",
8+
"test:e2e": "vp test -c vite.config.browser.ts --run",
9+
"test:e2e:updateSnaps": "vp test -c vite.config.browser.ts --run -u",
1210
"clean": "rimraf dist"
1311
},
1412
"devDependencies": {
@@ -17,18 +15,19 @@
1715
"@blocknote/mantine": "workspace:^",
1816
"@blocknote/react": "workspace:^",
1917
"@blocknote/shadcn": "workspace:^",
20-
"@playwright/experimental-ct-react": "1.51.1",
2118
"@playwright/test": "1.51.1",
2219
"@tiptap/pm": "^3.13.0",
2320
"@types/node": "^20.19.22",
2421
"@types/react": "^19.2.3",
2522
"@types/react-dom": "^19.2.3",
2623
"htmlfy": "^0.6.7",
24+
"playwright": "1.51.1",
2725
"react": "^19.2.5",
2826
"react-dom": "^19.2.5",
2927
"react-icons": "^5.5.0",
3028
"rimraf": "^5.0.10",
31-
"vite-plus": "catalog:"
29+
"vite-plus": "catalog:",
30+
"vitest-browser-react": "^2.2.0"
3231
},
3332
"dependencies": {
3433
"get-port-please": "3.2.0"

tests/playwright-ct.config.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

tests/playwright.config.ts

Lines changed: 0 additions & 120 deletions
This file was deleted.

tests/src/component/copypaste-external.spec.tsx

Lines changed: 0 additions & 154 deletions
This file was deleted.

0 commit comments

Comments
 (0)