Rayrun
← Back to Discord Forum

Github Action: TypeError: Unknown file extension ".ts"

My tests work well but when using github actions they fail with

`Run npx playwright test

TypeError: Unknown file extension ".ts" for /home/runner/work/lavaangui/lavaangui/src/e2e/example.spec.ts

Error: No tests found`

The full output is: https://github.com/karchjd/lavaangui/actions/runs/6619125871/job/17978994081 Workflow file: https://github.com/karchjd/lavaangui/blob/main/.github/workflows/playwright-test.yaml My project is: https://github.com/karchjd/lavaangui/

The only exceptional thing I do is that my tests are not in the root folder, which is why I need the " Navigate to src directory" action. It sounds like it is related to this bug: https://github.com/microsoft/playwright/issues/18282 but I have already tried the fixes suggested there.

This thread is trying to answer question "Why am I getting a 'TypeError: Unknown file extension ".ts"' when running tests with Github Actions?"

2 replies

maybe could be for the jsconfig

The log also states it is missing npm ci

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.