Open joepio opened 1 year ago
Fixed it! At least, the pnpm test
command
Had to clear playwright's cache
rm -rf ~/Library/Caches/ms-playwright
pnpx playwright install
Now I still have to get pnpm test-query folder
working, as it still shows:
TypeError: Unknown file extension ".ts" for /Users/joep/dev/github/atomicdata-dev/atomic-data-browser/data-browser/tests/e2e.spec.ts
at async Promise.all (index 0)
=================
no tests found.
Removing type: module
from atomic-data-browser fixed it. Not really happy with this fix, but ok.
@Polleps didn't have the Unknown file extension ".ts"
issue.
I'm having a bunch of (probably related) issues running playwright on my local device (m1 macbook, node 18.9).
It started by running
pnpm test
and getting errors aboutplaywright install
needed to be run, to install the browsers.Then I got
Turns out I had multiple
playwright
versions which conflicted, so I removed the duplicates and updated to"@playwright/test": "^1.29.2"
.When I run
pnpm test-query folder
I get:This might have to do with the
type: module
change?When I run
pnpm test
I get a bunch of these:Things I tried that did not work: