Giter Site home page Giter Site logo

esmock-issue-67's Introduction

This is a bit of a weird one. I've noticed that there are certain scenarios where esmock fails with NPM's Workspaces.

I'm not entirely sure where to start with this particular issue, though. But I went ahead and created an example repo that reproduces the issue.

If you clone the repo, you can reproduce the issue by running the following:

npm run setup
npm run test

If you're not on a UNIX-based system, you can run the commands manually:

git submodule init
git submodule update
cd esmock
git apply ../add-tests.patch
cd ..
npm install
npm run --workspace=esmock test

Notice the following failure:

    # Subtest: should mock a node_module
    not ok 17 - should mock a node_module
      ---
      duration_ms: 0.028361695
      failureType: 'testCodeFailure'
      error: |-
        Expected values to be strictly equal:
        + actual - expected

        + 'not_mocked'
        - 'foobar'
      code: 'ERR_ASSERTION'
      stack: |-
        TestContext.<anonymous> (file:///home/jdalrymple/src/by-project/esmock-ws/esmock/spec/node/esmock.node.test.js:226:10)
        async Test.run (node:internal/test_runner/test:338:9)
        async Test.processPendingSubtests (node:internal/test_runner/test:158:7)
      ...

esmock-issue-67's People

Contributors

swivelgames avatar

Watchers

 avatar  avatar

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.