Skip to content

Commit

Permalink
Add @babel/preset-env and an example test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmw2621 committed Jul 28, 2021
1 parent 885f4e3 commit be6b5a7
Show file tree
Hide file tree
Showing 3 changed files with 781 additions and 16 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"svelte-jester": "^1.7.0"
},
"dependencies": {
"@babel/preset-env": "^7.14.8",
"sirv-cli": "^1.0.0"
},
"jest": {
Expand Down
15 changes: 15 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* @jest-environment jsdom
*/

import "@testing-library/jest-dom/extend-expect";

import { render } from "@testing-library/svelte";

import Comp from "./App.svelte";

test("shows proper heading when rendered", () => {
const { getByText } = render(Comp, { name: "World" });

expect(getByText("Hello World!")).toBeInTheDocument();
});
Loading

0 comments on commit be6b5a7

Please sign in to comment.