Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ jobs:
with:
filters: |
backend:
- '.github/workflows/ci.yml'
- '.github/actions/setup/**'
- 'packages/backend/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.base.json'
frontend:
- '.github/workflows/ci.yml'
- '.github/actions/setup/**'
- 'packages/frontend/**'
- 'package.json'
- 'package-lock.json'
Expand All @@ -48,7 +52,10 @@ jobs:
node-version: '24.22.1'
cache: 'npm'
- run: npm ci
- run: tar -czf node-modules.tar.gz node_modules
- name: Archive root and workspace dependencies
run: |
find . -type d -name node_modules -prune -print0 |
tar --null -czf node-modules.tar.gz --files-from=-
- uses: actions/upload-artifact@v4
with:
name: node-modules
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,29 @@ npm run test:watch -w @mocker/backend
npm run test:coverage -w @mocker/backend
```

The unit suite mocks TypeORM. To also exercise the real MySQL driver, build the
backend and run the optional database compatibility test against an **isolated,
disposable** MySQL/MariaDB server with a local socket and a passwordless `root`
test account:

```bash
npm run build:backend
MOCKER_TEST_MYSQL_SOCKET=/absolute/path/to/disposable/mysql.sock npm run test:db -w @mocker/backend
```

This test creates a randomly named `mocker_test_*` database and drops it afterward.
It does not load `.env` or use the application's database configuration. Never
point it at an existing application database server.

Dependency maintenance keeps UUID on CommonJS-compatible v11 (with bundled
types), rather than the ESM-only newer majors. The narrowly scoped
`postcss-selector-parser` overrides give Tailwind 3 and `postcss-nested` the
patched v7 parser without migrating the application to Tailwind 4. The v7
insertion-iteration change is covered by a real Tailwind compilation regression
test for nested components and responsive, dark, group, and arbitrary variants.
Zod resolves within the existing v3-or-v4 peer ranges of OpenAI, React Hooks ESLint,
and `zod-validation-error`; no v3-only consumer is overridden.

### 6. Linting & Formatting

```bash
Expand Down
Loading
Loading