Skip to content

Commit

Permalink
Fixed debug setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Jan 16, 2018
1 parent e34a548 commit 9fd1654
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
{
// Note; this config requires node 8.4 or higher
"type": "node",
"protocol": "inspector",
"protocol": "auto",
"request": "launch",
"name": "debug unit test",
"stopOnEntry": false,
"program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js",
"args": ["-i", "${file}"],
"args": ["--verbose", "--testRegex",".*", "-i", "${file}"],
"runtimeArgs": [
"--nolazy"
]
Expand Down
2 changes: 0 additions & 2 deletions __tests__/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ function runBaseTest(name, useProxies, freeze) {
if (useProxies === true) {
it("should not be possible to set property descriptors", () => {
expect(() => {
debugger
produce({}, draft => {
Object.defineProperty(draft, "xx", {
enumerable: true,
Expand Down Expand Up @@ -486,7 +485,6 @@ function runBaseTest(name, useProxies, freeze) {
})

it("should not throw error, see #53 - 4", () => {
debugger
const base = {bear: {age: 10}}
const result = produce(base, draft => {
draft.bear.legs = 4
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"types": "./immer.d.ts",
"scripts": {
"test": "jest",
"test:perf": "yarn build && node --expose-gc node_modules/jest-cli/bin/jest.js --verbose --testRegex '__performance_tests__/.*'",
"test:perf": "yarn build && node --expose-gc node_modules/jest-cli/bin/jest.js --verbose --testRegex '__performance_tests__/.*?js$'",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"build": "rimraf dist/ && cross-env NODE_ENV=production rollup -c",
"prettier": "prettier \"*/**/*.js\" --ignore-path ./.prettierignore --write",
Expand Down

0 comments on commit 9fd1654

Please sign in to comment.