Skip to content

Commit bc69f0b

Browse files
committed
test: improve e2e workspace
1 parent 4e9de17 commit bc69f0b

9 files changed

Lines changed: 48 additions & 7 deletions

File tree

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ packages:
66
- src
77
- "!**/dist/**"
88
- docs
9+
- test/e2e

test/e2e/fixtures/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Build, Config } from "../../../src/index.js";
1+
import { Build, Config } from "zotero-plugin-scaffold";
22

33
async function main() {
44
const config = await Config.loadConfig({

test/e2e/fixtures/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
2-
"name": "test-plugin",
2+
"name": "@zotero-plugin-scaffold/e2e",
33
"type": "module",
44
"version": "1.0.0",
5-
"private": "true",
5+
"private": true,
6+
"description": "Test plugin for zotero-plugin-scaffold e2e tests",
67
"repository": {
78
"type": "git",
8-
"url": "git+https://github.com/northword/zotero-plugin-scaffold.git"
9+
"url": "git+https://github.com/zotero-plugin-dev/zotero-plugin-scaffold.git"
10+
},
11+
"dependencies": {
12+
"zotero-plugin-scaffold": "workspace:*"
913
}
1014
}

test/e2e/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "zotero-plugin-scaffold-e2e",
3+
"type": "module",
4+
"version": "0.8.3",
5+
"private": true,
6+
"description": "E2E tests for zotero-plugin-scaffold",
7+
"scripts": {
8+
"test": "vitest run",
9+
"test:watch": "vitest watch"
10+
},
11+
"dependencies": {
12+
"tinyglobby": "^0.2.11"
13+
},
14+
"devDependencies": {
15+
"zotero-plugin-scaffold": "workspace:*"
16+
}
17+
}

test/e2e/snap/dist/addon/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"strict_min_version": "6.999",
66
"strict_max_version": "7.*",
77
"id": "test-plugin",
8-
"update_url": "https://github.com/northword/zotero-plugin-scaffold/releases/download/releaser/update.json"
8+
"update_url": "https://github.com/zotero-plugin-dev/zotero-plugin-scaffold/releases/download/releaser/update.json"
99
}
1010
},
1111
"name": "Test Plugin",

test/e2e/snap/dist/update-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"version": "1.0.0",
16-
"update_link": "https://github.com/northword/zotero-plugin-scaffold/releases/download/v1.0.0/test-plugin.xpi",
16+
"update_link": "https://github.com/zotero-plugin-dev/zotero-plugin-scaffold/releases/download/v1.0.0/test-plugin.xpi",
1717
"applications": {
1818
"zotero": {
1919
"strict_min_version": "6.999",

test/e2e/snap/dist/update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"version": "1.0.0",
16-
"update_link": "https://github.com/northword/zotero-plugin-scaffold/releases/download/v1.0.0/test-plugin.xpi",
16+
"update_link": "https://github.com/zotero-plugin-dev/zotero-plugin-scaffold/releases/download/v1.0.0/test-plugin.xpi",
1717
"applications": {
1818
"zotero": {
1919
"strict_min_version": "6.999",

test/e2e/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"types": ["vitest/globals"]
6+
},
7+
"include": ["fixtures", "tests"],
8+
"exclude": ["dist"]
9+
}

0 commit comments

Comments
 (0)