Code Monkey home page Code Monkey logo

javascript-jest's People

Contributors

azusa avatar dependabot[bot] avatar dictav avatar grimrose avatar kamo-yasuhiro avatar kazweda avatar kuniwak avatar nnasaki avatar shishi avatar sue445 avatar twada avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

javascript-jest's Issues

npm run test:mjs を実行すると TypeError: _.r is not a function でテストがコケる

OS: macOS Big Sur 11.6

Node.js/npm: v12.22.6/v6.14.15
Node.js/npm: v14.18.0/v6.14.15
Node.js/npm: v16.10.0/v7.24.1

$ git clone https://github.com/tddbc/javascript-jest.git
$ cd javascript-jest.git
$ npm i

npm run test:jsは成功する

$ npm run test:js

> [email protected] test:js
> jest --config jest_js.config.js

 PASS  lib/sample_test.js
  ✓ exported class (1ms)
  ✓ private function (1ms)

Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        0.587s, estimated 1s
Ran all test suites.

npm run test:mjsは失敗する

$ npm run test:mjs

> [email protected] test:mjs
> jest --config jest_mjs.config.js

 FAIL  lib/sample_test.mjs
  ● Test suite failed to run

    TypeError: _.r is not a function

    > 1 | import { strict as assert } from "assert";
        |                          ^
      2 | import Sample from "./sample";
      3 | import rewire from "rewire";
      4 |

      at Object.<anonymous> (lib/sample_test.mjs:1:26)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.351s
Ran all test suites.

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.