Giter Club home page Giter Club logo

Comments (4)

JessicaSachs avatar JessicaSachs commented on May 18, 2024 1

from test-utils.

mesqueeb avatar mesqueeb commented on May 18, 2024

For me it worked with ava's documentation suggestion:

// /test/setup.js
const browserEnv = require('browser-env')
browserEnv(['window', 'document'])

this is literally all I have and it seems to work so far.

Can I contribute this to the documentation for Vue test utils alpha for Vue 3 somewhere?

from test-utils.

lmiller1990 avatar lmiller1990 commented on May 18, 2024

Hi! Glad you got this to work. Seems like there is no problem running this with Ava?

Regarding docs - they are in another repo here.

I don't think we should teach people how to configure for every possible test runner in the docs (there are many). But we should definitely provide something generic to the meaning of:

  • VTU depends on document been available. Recommend JSDom.
  • Did you find a way to work with .vue files? I am not sure if you need a special loader for Ava, or how it works.

@JessicaSachs is working on the docs for config, see this issue. Maybe you guys can collaborate.

For now I will close this since it looks like there is no actual problem with the library and Ava, it's more a docs related issue.

from test-utils.

mesqueeb avatar mesqueeb commented on May 18, 2024

@lmiller1990 it's just that the old vue 2.0 docs of vue-test-utils have documentation on how to set up a variety of test runners, including AVA as well.
Would feel bad for us AVAers if this won't be the case anymore going into 3.0.
Would love to contribute, I'll see how it goes these few weeks then come back.

from test-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.