Closed michael-golden closed 4 years ago
Can you please try the following:
jest --clearCache
in your project from CLI,That did help a bit. Thanks! It's still taking ~9 seconds for test edits to re-run -- but once a single test is modified, I can modify the same test and it completes ~400ms.
Thanks for the update.
It's still taking ~9 seconds for test edits to re-run
Do you mean a full test run for the whole project?
Thanks for the update.
It's still taking ~9 seconds for test edits to re-run
Do you mean a full test run for the whole project?
No -- for the single modified test
No -- for the single modified test
Can you please:
Copy Wallaby Diagnostics Report
command in your editor and paste the report,{ editorVersion: '1.43.2',
pluginVersion: '1.0.185',
editorType: 'VSCode',
osVersion: 'win32 10.0.18362',
nodeVersion: 'v11.9.0',
coreVersion: '1.0.871',
config:
{ diagnostics: {},
testFramework: { version: 'jest@24.8.0', configurator: 'jest@24.8.0', reporter: 'jest@24.8.0', starter: 'jest@24.8.0', autoDetected: true },
filesWithCoverageCalculated: [],
micromatch: true,
files:
[ { pattern: '\\\\node_modules\\\\', regexp: /\\node_modules\\/, ignore: true, trigger: true, load: true },
{ pattern: 'dist\\\\|build\\\\|coverage\\\\|\\\\\\.cache\\\\|\\\\\\.idea\\\\|\\\\\\.vscode\\\\|\\\\\\.git\\\\|\\\\\\.gitlab\\\\',
regexp: /dist\\|build\\|coverage\\|\\\.cache\\|\\\.idea\\|\\\.vscode\\|\\\.git\\|\\\.gitlab\\/,
ignore: true,
trigger: true,
load: true },
{ pattern: '**/**', ignore: false, trigger: true, load: true, order: 1 },
{ pattern: '**/+(*.)+(spec|test).+(ts|js)?(x)', ignore: true, trigger: true, load: true } ],
tests:
[ { pattern: '\\\\node_modules\\\\', regexp: /\\node_modules\\/, ignore: true, trigger: true, load: true, test: true },
{ pattern: 'dist\\\\|build\\\\|coverage\\\\|\\\\\\.cache\\\\|\\\\\\.idea\\\\|\\\\\\.vscode\\\\|\\\\\\.git\\\\|\\\\\\.gitlab\\\\',
regexp: /dist\\|build\\|coverage\\|\\\.cache\\|\\\.idea\\|\\\.vscode\\|\\\.git\\|\\\.gitlab\\/,
ignore: true,
trigger: true,
load: true,
test: true },
{ pattern: '**/+(*.)+(spec|test).+(ts|js)?(x)', ignore: false, trigger: true, load: true, test: true, order: 2 } ],
filesWithNoCoverageCalculated: [],
runAllTestsInAffectedTestFile: false,
compilers: {},
preprocessors: {},
maxConsoleMessagesPerTest: 100,
autoConsoleLog: true,
delays: { run: 0, edit: 100, update: 0 },
workers: { initial: 0, regular: 0, recycle: false },
teardown: undefined,
hints:
{ ignoreCoverage: '__REGEXP /ignore coverage|istanbul ignore/',
ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
commentAutoLog: '?',
testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' } },
automaticTestFileSelection: true,
runSelectedTestsOnly: false,
extensions: {},
env: { type: 'node', params: {}, runner: 'C:\\Program Files\\nodejs\\node.exe', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
reportUnhandledPromises: true,
slowTestThreshold: 75,
lowCoverageThreshold: 80,
loose: true,
configCode: 'auto.detect#2041082197' },
packageJSON:
{ dependencies:
{ '@godaddy/terminus': '^4.2.1',
'@hapi/joi': '^16.1.7',
'@nestjs/common': '^6.8.3',
'@nestjs/core': '^6.8.3',
'@nestjs/jwt': '^6.1.1',
'@nestjs/passport': '^6.1.1',
'@nestjs/platform-express': '^6.8.3',
'@nestjs/swagger': '^3.1.0',
'@nestjs/terminus': '^6.5.2',
'@nrwl/cli': '^8.7.0',
'@types/body-parser-xml': '^1.1.0',
'@types/lodash': '^4.14.149',
'amazon-s3-uri': '0.0.3',
'automapper-ts': '^1.9.0',
'aws-lambda': '^1.0.5',
'aws-sdk': '^2.596.0',
axios: '^0.19.1',
'body-parser': '^1.19.0',
'body-parser-xml': '^1.1.0',
chalk: '^2.4.2',
'class-transformer': '^0.2.3',
'class-validator': '^0.11.0',
commander: '^3.0.2',
'fork-ts-checker-webpack-plugin': '^3.1.1',
moment: '^2.24.0',
mysql: '^2.17.1',
'nest-emitter': '^1.1.0',
passport: '^0.4.1',
'passport-jwt': '^4.0.0',
'passport-local': '^1.0.0',
'reflect-metadata': '^0.1.13',
'swagger-ui-express': '^4.1.2',
thinid: '^0.5.5',
'ts-loader': '^6.2.1',
'tslint-lines-between-class-members': '^1.3.6' },
devDependencies:
{ '@nestjs/schematics': '^6.7.0',
'@nestjs/testing': '^6.8.3',
'@nrwl/eslint-plugin-nx': '9.0.4',
'@nrwl/jest': '9.0.4',
'@nrwl/nest': '9.0.4',
'@nrwl/node': '9.0.4',
'@nrwl/tao': '9.0.4',
'@nrwl/workspace': '9.0.4',
'@types/aws-lambda': '^8.10.39',
'@types/jest': '24.0.9',
'@types/node': '^11.13.4',
'@types/passport-jwt': '^3.0.3',
'@typescript-eslint/eslint-plugin': '2.3.2',
'@typescript-eslint/parser': '2.3.2',
dotenv: '^6.2.0',
eslint: '6.1.0',
'eslint-config-prettier': '6.0.0',
jest: '24.1.0',
'jest-mock-extended': '^1.0.8',
prettier: '1.18.2',
serverless: '^1.61.1',
'serverless-webpack': '^5.3.1',
'ts-jest': '24.0.2',
'ts-node': '^8.1.0',
'tsc-watch': '2.2.1',
'tsconfig-paths': '3.8.0',
'tsconfig-paths-webpack-plugin': '^3.2.0',
tslint: '~5.11.0',
typeorm: '^0.2.19',
typescript: '3.7.5' } },
fs: { numberOfFiles: 762 },
debug:
[ '2020-03-25T04:22:27.290Z config Detected Jest.\n',
'2020-03-25T04:22:27.290Z config Configured Jest.\n',
'2020-03-25T04:22:27.292Z project Wallaby Node version: v11.9.0\n',
'2020-03-25T04:22:27.292Z project Wallaby config: C:\\Repos\\pa\\pa_service_api\\auto.detect\n',
'2020-03-25T04:22:28.627Z project File cache: C:\\Users\\Gamer\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.185\\projects\\28ab5eec4a8c7e05\n',
'2020-03-25T04:22:28.674Z uiService Listening port 51235\n',
'2020-03-25T04:22:28.721Z workers Parallelism for initial run: 10, for regular run: 5\n',
'2020-03-25T04:22:28.721Z workers Starting run worker instance #0\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #1\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #2\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #3\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #4\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #5\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #6\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #7\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #8\n',
'2020-03-25T04:22:28.722Z workers Starting run worker instance #9\n',
'2020-03-25T04:22:28.723Z workers Web server is listening at 59421\n',
'2020-03-25T04:22:28.747Z project File cache requires some updates, waiting required files from IDE\n',
'2020-03-25T04:22:28.778Z project Stopping process pool\n',
'2020-03-25T04:22:28.779Z project Test run started; run priority: 3\n',
'2020-03-25T04:22:28.783Z project Running all tests\n',
'2020-03-25T04:22:28.808Z workers Starting test run, priority: 3\n',
'2020-03-25T04:22:28.808Z workers Distributing tests between 10 workers\n',
'2020-03-25T04:22:28.810Z workers Running tests in parallel\n',
'2020-03-25T04:22:28.810Z nodeRunner Starting sandbox [worker #0, session #r96sl]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #1, session #erhfs]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #2, session #r3z0z]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #3, session #z6klp]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #4, session #wfxgn]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #5, session #pl3ol]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #6, session #27yox]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #7, session #fnpv0]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #8, session #f0osp]\n',
'2020-03-25T04:22:28.811Z nodeRunner Starting sandbox [worker #9, session #mlfoh]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #0, session #r96sl]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #1, session #erhfs]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #2, session #r3z0z]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #3, session #z6klp]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #4, session #wfxgn]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #5, session #pl3ol]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #6, session #27yox]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #7, session #fnpv0]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #8, session #f0osp]\n',
'2020-03-25T04:22:28.811Z nodeRunner Preparing sandbox [worker #9, session #mlfoh]\n',
'2020-03-25T04:22:29.054Z workers Started run worker instance (delayed) #1\n',
'2020-03-25T04:22:29.054Z nodeRunner Prepared sandbox [worker #1, session #erhfs]\n',
'2020-03-25T04:22:29.055Z workers [worker #1, session #erhfs] Running tests in sandbox\n',
'2020-03-25T04:22:29.060Z workers Started run worker instance (delayed) #6\n',
'2020-03-25T04:22:29.060Z nodeRunner Prepared sandbox [worker #6, session #27yox]\n',
'2020-03-25T04:22:29.060Z workers [worker #6, session #27yox] Running tests in sandbox\n',
'2020-03-25T04:22:29.062Z workers Started run worker instance (delayed) #9\n',
'2020-03-25T04:22:29.062Z nodeRunner Prepared sandbox [worker #9, session #mlfoh]\n',
'2020-03-25T04:22:29.062Z workers [worker #9, session #mlfoh] Running tests in sandbox\n',
'2020-03-25T04:22:29.067Z workers Started run worker instance (delayed) #4\n',
'2020-03-25T04:22:29.067Z nodeRunner Prepared sandbox [worker #4, session #wfxgn]\n',
'2020-03-25T04:22:29.067Z workers [worker #4, session #wfxgn] Running tests in sandbox\n',
'2020-03-25T04:22:29.070Z workers Started run worker instance (delayed) #3\n',
'2020-03-25T04:22:29.071Z nodeRunner Prepared sandbox [worker #3, session #z6klp]\n',
'2020-03-25T04:22:29.071Z workers [worker #3, session #z6klp] Running tests in sandbox\n',
'2020-03-25T04:22:29.074Z workers Started run worker instance (delayed) #0\n',
'2020-03-25T04:22:29.075Z nodeRunner Prepared sandbox [worker #0, session #r96sl]\n',
'2020-03-25T04:22:29.075Z workers [worker #0, session #r96sl] Running tests in sandbox\n',
'2020-03-25T04:22:29.078Z workers Started run worker instance (delayed) #8\n',
'2020-03-25T04:22:29.078Z nodeRunner Prepared sandbox [worker #8, session #f0osp]\n',
'2020-03-25T04:22:29.079Z workers [worker #8, session #f0osp] Running tests in sandbox\n',
'2020-03-25T04:22:29.084Z workers Started run worker instance (delayed) #7\n',
'2020-03-25T04:22:29.084Z nodeRunner Prepared sandbox [worker #7, session #fnpv0]\n',
'2020-03-25T04:22:29.084Z workers [worker #7, session #fnpv0] Running tests in sandbox\n',
'2020-03-25T04:22:29.086Z workers Started run worker instance (delayed) #5\n',
'2020-03-25T04:22:29.086Z nodeRunner Prepared sandbox [worker #5, session #pl3ol]\n',
'2020-03-25T04:22:29.086Z workers [worker #5, session #pl3ol] Running tests in sandbox\n',
'2020-03-25T04:22:29.106Z workers Started run worker instance (delayed) #2\n',
'2020-03-25T04:22:29.106Z nodeRunner Prepared sandbox [worker #2, session #r3z0z]\n',
'2020-03-25T04:22:29.106Z workers [worker #2, session #r3z0z] Running tests in sandbox\n',
'2020-03-25T04:22:35.599Z workers [r96sl] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:35.599Z workers [r96sl] Test executed: should be defined\n',
'2020-03-25T04:22:35.665Z workers [erhfs] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:35.667Z workers [erhfs] Test executed: should be defined\n',
'2020-03-25T04:22:35.799Z workers [r96sl] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:35.801Z workers [r96sl] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:35.820Z workers [erhfs] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:35.822Z workers [erhfs] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:36.136Z workers [mlfoh] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:36.136Z workers [mlfoh] Test executed: should be defined\n',
'2020-03-25T04:22:36.230Z workers [mlfoh] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:36.231Z workers [mlfoh] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:36.477Z workers [fnpv0] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:36.477Z workers [fnpv0] Test executed: should be defined\n',
'2020-03-25T04:22:36.554Z workers [fnpv0] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:36.555Z workers [fnpv0] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:37.444Z workers [f0osp] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:37.445Z workers [f0osp] Test executed: should be defined\n',
'2020-03-25T04:22:37.445Z workers [f0osp] Test executed: test 1\n',
'2020-03-25T04:22:37.445Z workers [f0osp] Test executed: test 2\n',
'2020-03-25T04:22:37.446Z workers [f0osp] Test executed: test 3\n',
'2020-03-25T04:22:37.446Z workers [f0osp] Test executed: test 4\n',
'2020-03-25T04:22:37.446Z workers [f0osp] Test executed: test 5\n',
'2020-03-25T04:22:37.446Z workers [f0osp] Test executed: test 6\n',
'2020-03-25T04:22:37.447Z workers [f0osp] Test executed: test 7\n',
'2020-03-25T04:22:37.447Z workers [f0osp] Test executed: test 8\n',
'2020-03-25T04:22:37.447Z workers [f0osp] Test executed: test 9\n',
'2020-03-25T04:22:37.447Z workers [f0osp] Test executed: test 10\n',
'2020-03-25T04:22:37.450Z workers [f0osp] Test executed: test 11\n',
'2020-03-25T04:22:37.450Z workers [f0osp] Test executed: test 12\n',
'2020-03-25T04:22:37.451Z workers [f0osp] Test executed: test 13\n',
'2020-03-25T04:22:37.451Z workers [f0osp] Test executed: test 14\n',
'2020-03-25T04:22:37.451Z workers [f0osp] Test executed: test 15\n',
'2020-03-25T04:22:37.451Z workers [f0osp] Test executed: test 16\n',
'2020-03-25T04:22:37.453Z workers [f0osp] Test executed: test 17\n',
'2020-03-25T04:22:37.453Z workers [f0osp] Test executed: test 18\n',
'2020-03-25T04:22:37.453Z workers [f0osp] Test executed: test 19\n',
'2020-03-25T04:22:37.454Z workers [f0osp] Test executed: test 20\n',
'2020-03-25T04:22:37.454Z workers [f0osp] Test executed: test 21\n',
'2020-03-25T04:22:37.454Z workers [f0osp] Test executed: test 22\n',
'2020-03-25T04:22:37.454Z workers [f0osp] Test executed: test 23\n',
'2020-03-25T04:22:37.454Z workers [f0osp] Test executed: test 24\n',
'2020-03-25T04:22:37.454Z workers [f0osp] Test executed: test 25\n',
'2020-03-25T04:22:37.455Z workers [f0osp] Test executed: test 26\n',
'2020-03-25T04:22:37.455Z workers [f0osp] Test executed: test 27\n',
'2020-03-25T04:22:37.455Z workers [f0osp] Test executed: test 28\n',
'2020-03-25T04:22:37.455Z workers [f0osp] Test executed: test 29\n',
'2020-03-25T04:22:37.455Z workers [f0osp] Test executed: test 30\n',
'2020-03-25T04:22:37.456Z workers [f0osp] Test executed: test 31\n',
'2020-03-25T04:22:37.456Z workers [f0osp] Test executed: test 32\n',
'2020-03-25T04:22:37.456Z workers [f0osp] Test executed: test 33\n',
'2020-03-25T04:22:37.456Z workers [f0osp] Test executed: test 34\n',
'2020-03-25T04:22:37.456Z workers [f0osp] Test executed: test 35\n',
'2020-03-25T04:22:37.457Z workers [f0osp] Test executed: test 36\n',
'2020-03-25T04:22:37.457Z workers [f0osp] Test executed: test 37\n',
'2020-03-25T04:22:37.457Z workers [f0osp] Test executed: test 37\n',
'2020-03-25T04:22:37.457Z workers [f0osp] Test executed: test 38\n',
'2020-03-25T04:22:37.458Z workers [f0osp] Test executed: test 39\n',
'2020-03-25T04:22:37.458Z workers [f0osp] Test executed: test 40\n',
'2020-03-25T04:22:37.458Z workers [f0osp] Test executed: test 40\n',
'2020-03-25T04:22:37.514Z workers [f0osp] Run 43 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:37.515Z workers [f0osp] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:37.630Z workers [pl3ol] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:37.630Z workers [pl3ol] Test executed: should be defined\n',
'2020-03-25T04:22:37.631Z workers [pl3ol] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:37.631Z workers [pl3ol] Test executed: should be defined\n',
'2020-03-25T04:22:37.696Z workers [pl3ol] Run 2 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:37.697Z workers [pl3ol] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:37.854Z workers [wfxgn] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:37.855Z workers [wfxgn] Test executed: should be defined\n',
'2020-03-25T04:22:37.918Z workers [wfxgn] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:37.919Z workers [wfxgn] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:38.048Z workers [27yox] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:38.048Z workers [27yox] Test executed: should be defined\n',
'2020-03-25T04:22:38.084Z workers [z6klp] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:38.085Z workers [z6klp] Test executed: controller should be defined\n',
'2020-03-25T04:22:38.137Z workers [27yox] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:38.138Z workers [27yox] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:38.159Z workers [z6klp] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:38.160Z workers [z6klp] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:38.180Z workers [r3z0z] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:38.180Z workers [r3z0z] Test executed: should be defined\n',
'2020-03-25T04:22:38.252Z workers [r3z0z] Run 1 test(s), skipped 0 test(s)\n',
'2020-03-25T04:22:38.253Z workers [r3z0z] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:38.253Z workers Merging parallel test run results\n',
'2020-03-25T04:22:38.270Z project Test run finished\n',
'2020-03-25T04:22:38.271Z project Processed console.log entries\n',
'2020-03-25T04:22:38.273Z project Processed loading sequences\n',
'2020-03-25T04:22:38.274Z project Test name duplicate: test 37\n',
'2020-03-25T04:22:38.274Z project Test name duplicate: test 40\n',
'2020-03-25T04:22:38.274Z project Processed executed tests\n',
'2020-03-25T04:22:38.294Z project Processed code coverage\n',
'2020-03-25T04:22:38.442Z project Test run result processed and sent to IDE\n',
'2020-03-25T04:22:42.548Z fs File changed in editor: service.spec.ts\n',
'2020-03-25T04:22:42.556Z project Test run started; run priority: 2\n',
'2020-03-25T04:22:42.557Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
'2020-03-25T04:22:42.563Z workers Starting test run, priority: 2\n',
'2020-03-25T04:22:42.563Z nodeRunner Starting sandbox [worker #0, session #mzmel]\n',
'2020-03-25T04:22:42.563Z nodeRunner Preparing sandbox [worker #0, session #mzmel]\n',
'2020-03-25T04:22:42.563Z nodeRunner Prepared sandbox [worker #0, session #mzmel]\n',
'2020-03-25T04:22:42.563Z workers [worker #0, session #mzmel] Running tests in sandbox\n',
'2020-03-25T04:22:49.541Z workers [mzmel] Loaded unknown number of test(s)\n',
'2020-03-25T04:22:49.548Z workers [mzmel] Test executed: Test 34\n',
'2020-03-25T04:22:49.584Z workers [mzmel] Run 1 test(s), skipped 42 test(s)\n',
'2020-03-25T04:22:49.585Z workers [mzmel] Sandbox is responsive, closing it\n',
'2020-03-25T04:22:49.585Z project Test run finished\n',
'2020-03-25T04:22:49.585Z project Processed console.log entries\n',
'2020-03-25T04:22:49.585Z project Processed loading sequences\n',
'2020-03-25T04:22:49.586Z project Processed executed tests\n',
'2020-03-25T04:22:49.594Z project Processed code coverage\n',
'2020-03-25T04:22:49.656Z project Test run result processed and sent to IDE\n' ] }
Here is the Console output:
[Info] console.log: Jest: FAIL service.spec.ts (6.914s)
[Info] console.log: Jest: ● Service › Test 34
[Info] expect(received).toBe(expected) // Object.is equality
[Info] Expected: 1112.9
[Info] Received: 112.9
[Info] at Object.it (service.spec.ts:1623:82)
[Info] Finished executing 1 affected test(s) in 7.02 second(s)
Thanks for providing the output. As you may see from the output, it takes Jest 6.914s to run your test file after the very first change. Wallaby is only adding ~150ms on top of that. Most of the 7s time is spent in Jest (not in Wallaby) to:
ts-jest
is initialised and many of your TypeScript compiled files are cached).There's not much we can do to speed up ts-jest
. Also the delay will only happen after the very first edit of your test file (after the run is finished ts-jest
should cache a lot).
You can also try a couple of things to speed it up:
package.json
)(it may help a bit):
{
...
ts-jest
.Thank you! I'll give that a shot. Do you have an example of using babel as the compiler for wallaby?
is this as simple as the following?:
compilers: {
'**/*.ts': wallaby.compilers.babel()
}
Edit: Can confirm, switching to babel is nearly instant. Thank you, again!
@michael-golden You don't need any Wallaby config to enable TypeScript Babel compiler for Wallaby, just need to modify your Babel/Jest config to remove ts-jest
transform and use Babel.
Issue description or question
Wallaby stops running tests / and test runs take several (30-60) seconds to complete. After modifying a single test, the test doesn't auto re-evaluate. I have to manually re-run
Wallaby diagnostics report
After modifying a test, the following error shows in the WallabyJs console: