-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: some quality of life fixes #5
chore: some quality of life fixes #5
Conversation
solves: ```sh ... $ npm run test> @excaliburjs/[email protected] test> node ./dist/src/cli.js -d ./test -t ./dist/test/test.jsRunning against static files in directory: ./testCurrent Dir: /workspaces/excalibur-testingLoading /workspaces/excalibur-testing/dist/test/test.jsLoaded /workspaces/excalibur-testing/dist/test/test.js/workspaces/excalibur-testing/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:197 reject(new Error([ ^Error: Failed to launch the browser process!/workspaces/excalibur-testing/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directoryTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md at onClose (/workspaces/excalibur-testing/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:197:20) at Interface.<anonymous> (/workspaces/excalibur-testing/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:187:68) at Interface.emit (node:events:531:35) at Interface.close (node:internal/readline/interface:528:10) at Socket.onend (node:internal/readline/interface:254:10) at Socket.emit (node:events:531:35) at endReadableNT (node:internal/streams/readable:1696:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)Node.js v20.15.1 ... ```
b0f3fa7
to
225d961
Compare
It would be great to have one approach to testing. I think Playwright is a good way forward if we are already using it (I know @eonarheim likes it a lot 😁). I like the idea of the devcontainer, thanks for that 💯. |
Probably should use Node 22 eh 😅 (workflow is using node 12) |
just pushed a change w/ Node 20 since it is currently long term service(LTS), but happy to bump to 22 too. |
@virtuoushub Thanks for the contribution! I'll 100% accept this. Agree @kamranayub's, I think Playwright might solve all the problems |
@virtuoushub Thanks again for the contribution! |
@virtuoushub Published! |
@eonarheim my pleasure, thanks for the feedback/review/merge!
I think so too. I am going to play around a little bit more with this approach and see how it goes. |
Context:
Was using https://github.com/excaliburjs/template-ts-vite and noticed that
npm run test
was failing in my environment.This led me down a bit of a rabbit hole to look into the
@excaliburjs/testing
code, which ultimately had me creating this PR.changes
devcontainer.json
to aid with development in GitHub CodespacesclickPlayButton
package.json
node-static
to@brettz9/node-static
node-static
is not what we want here, can look into a different approach.another note: after syncing with @eonarheim on discord, seems like using
playwright
similar to how theelectron template
is doing testing might be the approach to take for the vite template instead.note: since the last release was almost 3 years ago, I'm not sure what the future of this package is.
that being said, I think it can benefit from some of these changes.
Also wondering if a different approach to this change is to update https://github.com/excaliburjs/template-ts-vite/blob/main/package.json#L11 / https://github.com/excaliburjs/template-ts-vite/blob/main/package.json#L35 to use https://github.com/excaliburjs/excalibur-jasmine instead since it was more recently updated.