Skip to content

Commit

Permalink
build: use local pw
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Jul 24, 2021
1 parent 02e3421 commit 74b718e
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 32 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/integration.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
pnpm lint
pnpm tsc
pnpm test
pnpm pw:ci
3 changes: 1 addition & 2 deletions integration-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"private": true,
"version": "4.6.7",
"scripts": {
"test": "playwright test",
"open": "playwright open https://saul-mirone.github.io/milkdown"
"test": "playwright test"
},
"files": [
"style"
Expand Down
3 changes: 2 additions & 1 deletion integration-test/tests/editor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { test, expect } from '@playwright/test';

const base = 'https://saul-mirone.github.io/milkdown/';
// const base = 'https://saul-mirone.github.io/milkdown/';
const base = 'http://localhost:3000/milkdown/';

test('url redirect', async ({ page }) => {
await page.goto(base);
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"test": "jest --passWithNoTests",
"tsc": "tsc --noEmit",
"pw": "pnpm run test --filter @milkdown/integration-test",
"pw:ci": "start-server-and-test doc http-get://localhost:3000/milkdown/#/ pw",
"build:packs": "tsc --build --force --verbose && pnpm run build:css -r --filter \"./packages/\"",
"build:doc": "pnpm run build --filter @milkdown/gh-pages",
"postinstall": "husky install && pnpm run build:packs",
Expand Down Expand Up @@ -87,8 +88,9 @@
"prosemirror-transform": "^1.3.2",
"prosemirror-view": "^1.18.2",
"rimraf": "^3.0.2",
"start-server-and-test": "^1.13.0",
"ts-jest": "^26.5.4",
"typescript": "^4.3.5",
"vite": "^2.3.8"
"vite": "^2.4.3"
}
}
Loading

0 comments on commit 74b718e

Please sign in to comment.