Skip to content

Commit

Permalink
fix failing tests in vite-dev-server by fixing source map references …
Browse files Browse the repository at this point in the history
…(expected since we are on 3 major versions ahead of vite) and install @cypress/vite-dev-server in correct packages [run ci]
  • Loading branch information
AtofStryker committed Oct 30, 2024
1 parent 8aa7c61 commit 93bffde
Show file tree
Hide file tree
Showing 5 changed files with 936 additions and 8 deletions.
4 changes: 2 additions & 2 deletions npm/vite-dev-server/cypress/e2e/vite-dev-server.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ describe('sourcemaps', () => {
cy.get('.runnable-err-file-path', { timeout: 250 }).should('contain', `${specName}:${line}:${column}`)
}

verifySourcemap('JsErrorSpec.cy.js', 7, 9)
verifySourcemap('JsErrorSpec.cy.js', 7, 8)

verifySourcemap('JsWithImportErrorSpec.cy.js', 9, 9)
verifySourcemap('JsWithImportErrorSpec.cy.js', 9, 8)

verifySourcemap('JsxErrorSpec.cy.jsx', 7, 8)

Expand Down
2 changes: 2 additions & 0 deletions system-tests/projects/vite4.5.5-react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"devDependencies": {
"@cypress/vite-dev-server": "file:../../../npm/vite-dev-server",
"@vitejs/plugin-react": "4.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vite": "4.5.5"
Expand Down
Loading

0 comments on commit 93bffde

Please sign in to comment.