rspress-plugin-typst 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -126,9 +126,14 @@ https://glimverge.github.io/rspress-plugin-typst/
126
126
  ```bash
127
127
  pnpm install
128
128
  pnpm build
129
- pnpm test
129
+ pnpm test # unit tests
130
+ pnpm test:e2e # Playwright against playground docs
130
131
  ```
131
132
 
133
+ E2E builds the plugin + playground, previews the site at
134
+ `/rspress-plugin-typst/`, and asserts Typst pages render in the browser.
135
+ CI runs the same suite in the `e2e` job.
136
+
132
137
  ## Publishing
133
138
 
134
139
  The [Release](.github/workflows/release.yml) workflow follows the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress-plugin-typst",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Rspress plugin that treats Typst (.typ) files as documentation pages via experimental HTML export.",
5
5
  "keywords": [
6
6
  "rspress",
@@ -50,6 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@microsoft/api-extractor": "^7.59.4",
53
+ "@playwright/test": "1.58.2",
53
54
  "@rsbuild/plugin-react": "^1.4.0",
54
55
  "@rslib/core": "^1.0.3",
55
56
  "@rspress/core": "^2.0.23",
@@ -77,8 +78,11 @@
77
78
  "build": "rslib build",
78
79
  "dev": "rslib build --watch",
79
80
  "test": "pnpm build && node --experimental-strip-types --test tests/**/*.test.ts",
81
+ "test:e2e": "pnpm build && pnpm playground:build && playwright test",
82
+ "test:e2e:ui": "playwright test --ui",
80
83
  "typecheck": "tsc -p tsconfig.json --noEmit",
81
84
  "playground:dev": "pnpm --filter playground dev",
82
- "playground:build": "pnpm --filter playground build"
85
+ "playground:build": "pnpm --filter playground build",
86
+ "playground:preview": "pnpm --filter playground preview --host 127.0.0.1 --port 4173"
83
87
  }
84
88
  }