Coder Social home page Coder Social logo

Integration tests about prefresh HOT 2 CLOSED

preactjs avatar preactjs commented on May 30, 2024
Integration tests

from prefresh.

Comments (2)

PepsRyuu avatar PepsRyuu commented on May 30, 2024 2

Just thinking about this more (still trying to get the current tests running on my laptop), do you think it might be worthwhile having a look to have a common set of test cases and run the same ones for each bundler? Something like the following:

[vite, snowpack, nollup].forEach(engine => {
    beforeEach(() => {
          // start dev server
     });

    describe('some test case', () => {
         it ('should update');
    });
});

Would reduce a lot of duplication. Fixtures might have to be duplicated though because of different index.html files though. Or do you think it would be better to keep tests separate for the time being?

from prefresh.

JoviDeCroock avatar JoviDeCroock commented on May 30, 2024

I think there's value in having a general test suite so we can test it all at once but it's going to be really hard to find the right abstraction to make all integrations work.

I do think that if we have like:

packages/
test/
  fixtures/
    webpack-dev-server/
    nollup/
    vite/
    ...
   test.js

It could work (implemented in #165)

having some issues expanding into other suites but we're getting there #166

from prefresh.

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.