Skip to content

Commit

Permalink
Use playwright-monaco for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Aug 25, 2023
1 parent 8387bfe commit 42321c1
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 137 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ dist/
node_modules/
test/out/
playwright-report/
test-results/
/index.js
/yaml.worker.js
*.log
Expand Down
175 changes: 170 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"eslint": "^8.0.0",
"eslint-config-remcohaszing": "^9.0.0",
"monaco-editor": "^0.41.0",
"playwright-monaco": "^1.0.0",
"remark-cli": "^11.0.0",
"remark-preset-remcohaszing": "^1.0.0",
"typescript": "^5.0.0",
Expand Down
22 changes: 12 additions & 10 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { type PlaywrightTestConfig } from '@playwright/test'
import { defineConfig } from '@playwright/test'
import { createServer } from 'playwright-monaco'

const config: PlaywrightTestConfig = {
reporter: 'html',
timeout: 120_000,
webServer: {
command: 'node test/serve.js',
port: 3000,
reuseExistingServer: !process.env.CI
export default defineConfig({
expect: { timeout: 10_000 },
timeout: 60_000,
use: {
baseURL: await createServer({
setup: './test/setup',
yaml: './yaml.worker'
}),
colorScheme: 'dark'
}
}
export default config
})
17 changes: 0 additions & 17 deletions test/build.js

This file was deleted.

11 changes: 0 additions & 11 deletions test/index.html

This file was deleted.

39 changes: 0 additions & 39 deletions test/index.ts

This file was deleted.

Loading

0 comments on commit 42321c1

Please sign in to comment.