Skip to content

Commit 8c89a8b

Browse files
committed
chore: merge PR #99 branch to pick up alt-text/pages test scripts
The new CI steps in this branch invoke `pnpm test` (alt-text) and `pnpm test:unit` (pages), which are defined in PR #99. Merging PR #99 in so CI can actually run the intended suites until PR #99 lands on main.
2 parents ad9495b + 482c7fd commit 8c89a8b

25 files changed

Lines changed: 1686 additions & 87 deletions

alt-text/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- fix: respect a user-customized `routes.api` in the generate and bulk-generate buttons (the fetch previously hardcoded `/api/alt-text-plugin/...`)
6+
- refactor: use Payload's `formatAdminURL` helper when linking from the health widget to collection lists
7+
38
## 0.4.4
49

510
- style: standardize icons to use Geist icon set (16x16 filled)

alt-text/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818
"types": "./src/index.ts",
1919
"scripts": {
2020
"build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
21-
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
22-
"build:types": "tsc --outDir dist --rootDir ./src",
21+
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths --ignore '**/*.test.ts,**/*.test.tsx'",
22+
"build:types": "tsc --project tsconfig.build.json --outDir dist --rootDir ./src",
2323
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
2424
"clean": "rimraf --glob {dist,*.tsbuildinfo}",
2525
"dev": "tsc -w",
2626
"format": "prettier --write src",
2727
"lint": "eslint src",
2828
"lint:fix": "eslint src --fix",
29+
"test": "pnpm test:health && pnpm test:components",
30+
"test:components": "vitest run",
2931
"test:health": "node --experimental-strip-types --test test/altTextHealth.test.ts",
3032
"prepublishOnly": "pnpm clean && pnpm build"
3133
},
@@ -47,13 +49,16 @@
4749
"@payloadcms/translations": "^3.81.0",
4850
"@swc/cli": "^0.8.1",
4951
"@swc/core": "^1.15.24",
52+
"@testing-library/react": "^16.3.2",
5053
"@types/react": "19.2.14",
5154
"@types/react-dom": "19.2.3",
5255
"copyfiles": "2.4.1",
5356
"eslint": "^9.0.0",
57+
"jsdom": "^29.0.2",
5458
"prettier": "^3.8.1",
5559
"rimraf": "6.1.3",
56-
"typescript": "5.9.3"
60+
"typescript": "5.9.3",
61+
"vitest": "^4.1.4"
5762
},
5863
"files": [
5964
"dist"

0 commit comments

Comments
 (0)