Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I integrate dainte with Jest? #212

Open
alcibiadesc opened this issue Nov 2, 2020 · 1 comment
Open

How can I integrate dainte with Jest? #212

alcibiadesc opened this issue Nov 2, 2020 · 1 comment

Comments

@alcibiadesc
Copy link

alcibiadesc commented Nov 2, 2020

First of all, thanks Nathan for Daine!

As a TDD beginner I would like to use Dainte as I use Enzyme with Jest.

Any way to do it?

If I tried to insert inside a

// inside App.test.js

import App from "./App";
import {render} from "dainte";

test("renders learn svelte link", () => {
const { app } = await mount('./App.svelte' )
});

Appear the next error:
image

@ubermanu
Copy link

I guess you figured that out already, but you should use the full path to your svelte component

// inside App.test.js

import { mount } from "dainte";

test("renders learn svelte link", () => {
  const { app } = await mount('./src/App.svelte' )
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants