Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpetryk committed Oct 15, 2024
1 parent 3010533 commit e6a694b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export default {
transform: {
"^.+\\.(t|j)sx?$": ["@swc/jest", { jsc: { transform: { react: { runtime: "automatic" } } } }],
},
testPathIgnorePatterns: ["<rootDir>/e2e/"],
testPathIgnorePatterns: ["<rootDir>/e2e/", "<rootDir>/tests/frameworks/"],
}
4 changes: 2 additions & 2 deletions tests/frameworks/frameworks.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { setTimeout } from "node:timers/promises"
import { test, expect } from "@playwright/test"

test("vite", async ({ page }) => {
let errors: string[] = []
const errors: string[] = []
page.on("console", (msg) => {
if (msg.type() === "error") {
errors.push(msg.text())
Expand Down Expand Up @@ -63,7 +63,7 @@ async function getFreePort(): Promise<number> {
srv.listen(0, () => {
// @ts-expect-error - don't care lol
const port = srv.address().port
srv.close((err) => res(port))
srv.close(() => res(port))
})
})
}
5 changes: 1 addition & 4 deletions tests/frameworks/vite/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
}
4 changes: 2 additions & 2 deletions tests/frameworks/vite/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit e6a694b

Please sign in to comment.