From 42811344da5edc7fd7caba1b9eb92784e9bd84d2 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Fri, 22 Oct 2021 14:46:21 +0200 Subject: [PATCH] [IMP] package.json: add remote test:debug command Usage: Open chrome://inspect then run in console: > npm run test:debug ./path/to/your/testfile.ts --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 6b67e2b3..0c46f114 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "build:bundle": "rollup -c", "build": "npm run build:bundle", "test": "jest", + "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand", "test:watch": "jest --watch", "tools:serve": "python3 tools/server.py || python tools/server.py", "tools": "npm run build && npm run tools:serve",