Skip to content

hade/leetcode

Repository files navigation

Leetcode

Some leetcode.com problems solved for practicing purposes.

Jest setup for testing

Using jest for testing. ES6 module export/import does not work out-of-the-box. Module-type is needed and node needs to be executed in --experimental-vm-modules mode.

{
  "dependencies": {},
  "devDependencies": {
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-jest": "^24.3.6",
    "jest": "^26.6.3"
  },
  "type": "module", 
  "scripts": {
    "test": "node --experimental-vm-modules node_modules/.bin/jest"
  }
}

Running individual test:

yarn test two-sum.test.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published