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
17 changes: 14 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,28 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 26
# The workshop's pinned MSW/Undici stack has an AbortSignal realm
# incompatibility on Node 26. Node 22 is supported by package.json.
node-version: 22

- name: 📦 Install dependencies
run: npm ci

# Workshops ship epicshop/test.js (not .ts). `..s` runs solution apps only.
- name: 🏗 Prepare solution tests
env:
SKIP_PLAYWRIGHT: true
SKIP_PLAYGROUND: true
run: npm run setup:custom

# Exercises 1–3 contain Playwright suites, which cannot be collected by
# their `npm test` Vitest command. Run every test in the completed Vitest
# solution for exercises 4–11; intermediate steps can intentionally
# demonstrate failing tests that later steps fix.
- name: 🧪 Run solution tests
run: |
set -euo pipefail
if [ -f ./epicshop/test.js ]; then
node ./epicshop/test.js ..s
node ./epicshop/test.js '4.4.s,5.2.s,6.2.s,7.2.s,8.3.s,9.3.s,10.1.s,11.3.s'
else
echo "No epicshop/test.js in this workshop; skipping solution-app test runner."
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ test('The user profile when logged in as self', async () => {
args.request.headers.set('cookie', cookieHeader)
return rootLoader(args)
},
Component: function TestComponent() {
return <div>Test Component</div>
},
children: [
{
path: 'users/:username',
Expand Down
Loading