add the test
This commit is contained in:
parent
57655bf7f2
commit
4ed175d54a
@ -4,6 +4,7 @@ version: "3"
|
||||
|
||||
vars:
|
||||
GREETING: Hello, World!
|
||||
PARENT_BRANCH: main
|
||||
|
||||
tasks:
|
||||
test:
|
||||
@ -31,7 +32,9 @@ tasks:
|
||||
deps: [check]
|
||||
cmds:
|
||||
- git is-clean
|
||||
- git checkout main
|
||||
# did we had tests?
|
||||
- git diff-ls {{.PARENT_BRANCH}} | grep test
|
||||
- git checkout {{.PARENT_BRANCH}}
|
||||
- git weld -
|
||||
|
||||
release:
|
||||
|
9
src/routes/page.test.js
Normal file
9
src/routes/page.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
import { render, fireEvent, screen, getByText } from "@testing-library/svelte";
|
||||
import "@testing-library/jest-dom";
|
||||
|
||||
import Page from "./+page.svelte";
|
||||
|
||||
test("we have a page", () => {
|
||||
const { getByText } = render(Page);
|
||||
expect(getByText("propulsion")).toBeInTheDocument();
|
||||
});
|
Loading…
Reference in New Issue
Block a user