-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vitest (test runner) test CI job, and a very basic test (#21)
* Add jest (test runner) and a single always-passing test * Add testing to GH Actions workflow * Combine lint and test in one job * Change from jest to vitest; add a working test * More mocking - not sure why it passes locally and fails in CI * More mocking - not sure why it passes locally and fails in CI * More mocking - not sure why it passes locally and fails in CI * Use playwright for headless browser testing * Switch from v8 to istanbul for coverage in browser mode * Only install chromium in CI for now
- Loading branch information
Showing
8 changed files
with
2,465 additions
and
737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { expect, test } from "vitest"; | ||
|
||
import Scene from "../src/scene"; | ||
import React from "react"; | ||
import { render } from "@testing-library/react"; | ||
|
||
test("tests work", () => { | ||
expect(true).toBeTruthy(); | ||
}); | ||
|
||
test("render Scene", () => { | ||
const { container } = render(<Scene renderWidth={800} />); | ||
expect(container).not.toBeNull(); | ||
}); |
Oops, something went wrong.