sxy-test-runner 1.4.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +24 -22
- package/dist/cli/init.js +41 -91
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/lib/addBasePath.d.ts.map +1 -1
- package/dist/cli/lib/addBasePath.js +12 -14
- package/dist/cli/lib/addBasePath.js.map +1 -1
- package/dist/cli/lib/addBasePath.unitTest.d.ts +2 -0
- package/dist/cli/lib/addBasePath.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/addBasePath.unitTest.js +51 -29
- package/dist/cli/lib/addBasePath.unitTest.js.map +1 -0
- package/dist/cli/lib/addExports.js +13 -11
- package/dist/cli/lib/addExports.unitTest.d.ts +2 -0
- package/dist/cli/lib/addExports.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/addExports.unitTest.js +15 -30
- package/dist/cli/lib/addExports.unitTest.js.map +1 -0
- package/dist/cli/lib/applyConfigDefaults.js +6 -42
- package/dist/cli/lib/applyConfigDefaults.js.map +1 -1
- package/dist/cli/lib/applyConfigDefaults.unitTest.d.ts +2 -0
- package/dist/cli/lib/applyConfigDefaults.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/applyConfigDefaults.unitTest.js +19 -27
- package/dist/cli/lib/applyConfigDefaults.unitTest.js.map +1 -0
- package/dist/cli/lib/buildDependencyTree.js +23 -34
- package/dist/cli/lib/buildDependencyTree.js.map +1 -1
- package/dist/cli/lib/buildDependencyTree.unitTest.d.ts +2 -0
- package/dist/cli/lib/buildDependencyTree.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/buildDependencyTree.unitTest.js +13 -11
- package/dist/cli/lib/buildDependencyTree.unitTest.js.map +1 -0
- package/dist/cli/lib/buildDependencyTrees.js +15 -34
- package/dist/cli/lib/buildDependencyTrees.js.map +1 -1
- package/dist/cli/lib/buildDependencyTrees.unitTest.d.ts +2 -0
- package/dist/cli/lib/buildDependencyTrees.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/buildDependencyTrees.unitTest.js +18 -14
- package/dist/cli/lib/buildDependencyTrees.unitTest.js.map +1 -0
- package/dist/cli/lib/defaultConfig.js +23 -21
- package/dist/cli/lib/defaultConfig.unitTest.d.ts +2 -0
- package/dist/cli/lib/defaultConfig.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/defaultConfig.unitTest.js +7 -0
- package/dist/cli/lib/defaultConfig.unitTest.js.map +1 -0
- package/dist/cli/lib/doUserSetup.d.ts +1 -1
- package/dist/cli/lib/doUserSetup.d.ts.map +1 -1
- package/dist/cli/lib/doUserSetup.js +20 -23
- package/dist/cli/lib/doUserSetup.js.map +1 -1
- package/dist/cli/lib/doUserSetup.unitTest.d.ts +7 -0
- package/dist/cli/lib/doUserSetup.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/doUserSetup.unitTest.js +41 -36
- package/dist/cli/lib/doUserSetup.unitTest.js.map +1 -0
- package/dist/cli/lib/doUserTeardown.d.ts +1 -1
- package/dist/cli/lib/doUserTeardown.d.ts.map +1 -1
- package/dist/cli/lib/doUserTeardown.js +21 -23
- package/dist/cli/lib/doUserTeardown.js.map +1 -1
- package/dist/cli/lib/doUserTeardown.unitTest.d.ts +7 -0
- package/dist/cli/lib/doUserTeardown.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/doUserTeardown.unitTest.js +41 -36
- package/dist/cli/lib/doUserTeardown.unitTest.js.map +1 -0
- package/dist/cli/lib/findTestFiles.d.ts.map +1 -1
- package/dist/cli/lib/findTestFiles.js +16 -24
- package/dist/cli/lib/findTestFiles.js.map +1 -1
- package/dist/cli/lib/findTestFiles.unitTest.d.ts +2 -0
- package/dist/cli/lib/findTestFiles.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/findTestFiles.unitTest.js +19 -19
- package/dist/cli/lib/findTestFiles.unitTest.js.map +1 -0
- package/dist/cli/lib/getAllowedFlags.js +10 -8
- package/dist/cli/lib/getAllowedFlags.unitTest.d.ts +2 -0
- package/dist/cli/lib/getAllowedFlags.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/getAllowedFlags.unitTest.js +22 -21
- package/dist/cli/lib/getAllowedFlags.unitTest.js.map +1 -0
- package/dist/cli/lib/globArgCombine.js +8 -1
- package/dist/cli/lib/globArgCombine.unitTest.d.ts +2 -0
- package/dist/cli/lib/globArgCombine.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/globArgCombine.unitTest.js +19 -18
- package/dist/cli/lib/globArgCombine.unitTest.js.map +1 -0
- package/dist/cli/lib/injectProperties.d.ts.map +1 -1
- package/dist/cli/lib/injectProperties.js +10 -10
- package/dist/cli/lib/injectProperties.js.map +1 -1
- package/dist/cli/lib/injectProperties.unitTest.d.ts +2 -0
- package/dist/cli/lib/injectProperties.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/injectProperties.unitTest.js +19 -81
- package/dist/cli/lib/injectProperties.unitTest.js.map +1 -0
- package/dist/cli/lib/loadConfig.js +14 -18
- package/dist/cli/lib/loadConfig.js.map +1 -1
- package/dist/cli/lib/loadConfig.unitTest.d.ts +2 -0
- package/dist/cli/lib/loadConfig.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/loadConfig.unitTest.js +15 -15
- package/dist/cli/lib/loadConfig.unitTest.js.map +1 -0
- package/dist/cli/lib/loadTestFile.js +48 -78
- package/dist/cli/lib/loadTestFile.js.map +1 -1
- package/dist/cli/lib/loadTestFile.unitTest.d.ts +2 -0
- package/dist/cli/lib/loadTestFile.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/loadTestFile.unitTest.js +12 -49
- package/dist/cli/lib/loadTestFile.unitTest.js.map +1 -0
- package/dist/cli/lib/parseCommandLineArguments.js +48 -42
- package/dist/cli/lib/parseCommandLineArguments.unitTest.d.ts +2 -0
- package/dist/cli/lib/parseCommandLineArguments.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/parseCommandLineArguments.unitTest.js +22 -24
- package/dist/cli/lib/parseCommandLineArguments.unitTest.js.map +1 -0
- package/dist/cli/lib/parseDescribe.d.ts.map +1 -1
- package/dist/cli/lib/parseDescribe.js +67 -81
- package/dist/cli/lib/parseDescribe.js.map +1 -1
- package/dist/cli/lib/parseDescribe.unitTest.d.ts +2 -0
- package/dist/cli/lib/parseDescribe.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/parseDescribe.unitTest.js +20 -18
- package/dist/cli/lib/parseDescribe.unitTest.js.map +1 -0
- package/dist/cli/lib/reservedExportKeys.d.ts +2 -0
- package/dist/cli/lib/reservedExportKeys.d.ts.map +1 -0
- package/dist/cli/lib/reservedExportKeys.js +12 -1
- package/dist/cli/lib/reservedExportKeys.js.map +1 -0
- package/dist/cli/lib/reservedExportKeys.unitTest.d.ts +2 -0
- package/dist/cli/lib/reservedExportKeys.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/reservedExportKeys.unitTest.js +6 -8
- package/dist/cli/lib/reservedExportKeys.unitTest.js.map +1 -0
- package/dist/cli/lib/runDescribe.d.ts.map +1 -1
- package/dist/cli/lib/runDescribe.js +39 -39
- package/dist/cli/lib/runDescribe.js.map +1 -1
- package/dist/cli/lib/runDescribe.unitTest.d.ts +2 -0
- package/dist/cli/lib/runDescribe.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/runDescribe.unitTest.js +22 -402
- package/dist/cli/lib/runDescribe.unitTest.js.map +1 -0
- package/dist/cli/lib/runDescribeRun.js +34 -49
- package/dist/cli/lib/runDescribeRun.js.map +1 -1
- package/dist/cli/lib/runDescribeRun.unitTest.d.ts +2 -0
- package/dist/cli/lib/runDescribeRun.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/runDescribeRun.unitTest.js +44 -410
- package/dist/cli/lib/runDescribeRun.unitTest.js.map +1 -0
- package/dist/cli/lib/runIt.d.ts +1 -1
- package/dist/cli/lib/runIt.d.ts.map +1 -1
- package/dist/cli/lib/runIt.js +59 -69
- package/dist/cli/lib/runIt.js.map +1 -1
- package/dist/cli/lib/runIt.unitTest.d.ts +2 -0
- package/dist/cli/lib/runIt.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/runIt.unitTest.js +73 -410
- package/dist/cli/lib/runIt.unitTest.js.map +1 -0
- package/dist/cli/lib/runTasks.d.ts +1 -1
- package/dist/cli/lib/runTasks.d.ts.map +1 -1
- package/dist/cli/lib/runTasks.js +28 -31
- package/dist/cli/lib/runTasks.js.map +1 -1
- package/dist/cli/lib/runTasks.unitTest.d.ts +5 -0
- package/dist/cli/lib/runTasks.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/runTasks.unitTest.js +35 -31
- package/dist/cli/lib/runTasks.unitTest.js.map +1 -0
- package/dist/cli/lib/runTest.js +54 -66
- package/dist/cli/lib/runTest.js.map +1 -1
- package/dist/cli/lib/runTest.unitTest.d.ts +20 -0
- package/dist/cli/lib/runTest.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/runTest.unitTest.js +274 -289
- package/dist/cli/lib/runTest.unitTest.js.map +1 -0
- package/dist/cli/lib/runTests.d.ts.map +1 -1
- package/dist/cli/lib/runTests.js +123 -141
- package/dist/cli/lib/runTests.js.map +1 -1
- package/dist/cli/lib/runTests.unitTest.d.ts +6 -0
- package/dist/cli/lib/runTests.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/runTests.unitTest.js +48 -61
- package/dist/cli/lib/runTests.unitTest.js.map +1 -0
- package/dist/cli/lib/showTestLoadingError.js +22 -33
- package/dist/cli/lib/showTestLoadingError.js.map +1 -1
- package/dist/cli/lib/showTestLoadingError.unitTest.d.ts +2 -0
- package/dist/cli/lib/showTestLoadingError.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/showTestLoadingError.unitTest.js +16 -24
- package/dist/cli/lib/showTestLoadingError.unitTest.js.map +1 -0
- package/dist/cli/lib/showTestResult.js +88 -88
- package/dist/cli/lib/showTestResult.js.map +1 -1
- package/dist/cli/lib/showTestResult.unitTest.d.ts +2 -0
- package/dist/cli/lib/showTestResult.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/showTestResult.unitTest.js +176 -184
- package/dist/cli/lib/showTestResult.unitTest.js.map +1 -0
- package/dist/cli/lib/testHelpers/makeCustomOut.d.ts +7 -0
- package/dist/cli/lib/testHelpers/makeCustomOut.d.ts.map +1 -0
- package/dist/cli/lib/testHelpers/makeCustomOut.js +10 -0
- package/dist/cli/lib/testHelpers/makeCustomOut.js.map +1 -0
- package/dist/cli/lib/timeProfier.js +4 -6
- package/dist/cli/lib/timeProfier.js.map +1 -1
- package/dist/cli/lib/validateConfig.js +21 -24
- package/dist/cli/lib/validateConfig.unitTest.d.ts +2 -0
- package/dist/cli/lib/validateConfig.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/validateConfig.unitTest.js +17 -18
- package/dist/cli/lib/validateConfig.unitTest.js.map +1 -0
- package/dist/cli/lib/{watchFiles.js → watchFiles.d.ts} +2 -1
- package/dist/cli/lib/watchFiles.d.ts.map +1 -0
- package/dist/cli/lib/watchFiles.js.map +1 -0
- package/dist/cli/lib/watchFiles.unitTest.d.ts +2 -0
- package/dist/cli/lib/watchFiles.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/watchFiles.unitTest.js.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTests.js +2 -3
- package/dist/cli/lib/watchFilesAndRunTests.unitTest.d.ts +2 -0
- package/dist/cli/lib/watchFilesAndRunTests.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTests.unitTest.js +86 -96
- package/dist/cli/lib/watchFilesAndRunTests.unitTest.js.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.d.ts.map +1 -1
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.js +99 -127
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.js.map +1 -1
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.d.ts +2 -0
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.js +90 -99
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.js.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.d.ts.map +1 -1
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js +108 -148
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js.map +1 -1
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.d.ts +2 -0
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.js +87 -100
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.js.map +1 -0
- package/dist/cli/lib/watchFilesChokidar.js +30 -56
- package/dist/cli/lib/watchFilesChokidar.js.map +1 -1
- package/dist/cli/lib/watchFilesChokidar.unitTest.d.ts +2 -0
- package/dist/cli/lib/watchFilesChokidar.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesChokidar.unitTest.js +77 -81
- package/dist/cli/lib/watchFilesChokidar.unitTest.js.map +1 -0
- package/dist/cli/lib/watchFilesNodeWatch.js +31 -41
- package/dist/cli/lib/watchFilesNodeWatch.js.map +1 -1
- package/dist/cli/lib/watchFilesNodeWatch.unitTest.d.ts +2 -0
- package/dist/cli/lib/watchFilesNodeWatch.unitTest.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesNodeWatch.unitTest.js +41 -46
- package/dist/cli/lib/watchFilesNodeWatch.unitTest.js.map +1 -0
- package/dist/cli/once.js +35 -42
- package/dist/cli/once.js.map +1 -1
- package/dist/cli/watch.js +64 -114
- package/dist/cli/watch.js.map +1 -1
- package/dist/cli/watch.unitTest.d.ts +6 -0
- package/dist/cli/watch.unitTest.d.ts.map +1 -0
- package/dist/cli/watch.unitTest.js +100 -111
- package/dist/cli/watch.unitTest.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -2
- package/dist/config.js.map +1 -1
- package/dist/describe.js +20 -34
- package/dist/describe.js.map +1 -1
- package/dist/describe.unitTest.d.ts +2 -0
- package/dist/describe.unitTest.d.ts.map +1 -0
- package/dist/describe.unitTest.js +19 -23
- package/dist/describe.unitTest.js.map +1 -0
- package/dist/index.js +2 -1
- package/dist/indexNumberToLetters.js +12 -11
- package/dist/output.js +16 -18
- package/dist/packages/chalk.d.ts +14 -0
- package/dist/packages/chalk.d.ts.map +1 -0
- package/dist/packages/chalk.js +22 -0
- package/dist/packages/chalk.js.map +1 -0
- package/dist/packages/figures.d.ts +6 -0
- package/dist/packages/figures.d.ts.map +1 -0
- package/dist/packages/figures.js +24 -0
- package/dist/packages/figures.js.map +1 -0
- package/dist/packages/loadConfig.d.ts +3 -0
- package/dist/packages/loadConfig.d.ts.map +1 -0
- package/dist/packages/loadConfig.js +28 -0
- package/dist/packages/loadConfig.js.map +1 -0
- package/dist/packages/mergeStructuredConfig.d.ts +2 -0
- package/dist/packages/mergeStructuredConfig.d.ts.map +1 -0
- package/dist/packages/mergeStructuredConfig.js +26 -0
- package/dist/packages/mergeStructuredConfig.js.map +1 -0
- package/dist/packages/slash.d.ts +2 -0
- package/dist/packages/slash.d.ts.map +1 -0
- package/dist/packages/slash.js +9 -0
- package/dist/packages/slash.js.map +1 -0
- package/dist/packages/timeProfiler.d.ts +6 -0
- package/dist/packages/timeProfiler.d.ts.map +1 -0
- package/dist/packages/timeProfiler.js +32 -0
- package/dist/packages/timeProfiler.js.map +1 -0
- package/dist/types.d.ts +13 -13
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -20
- package/dist/cli/files.js +0 -20
- package/dist/cli/files.unitTest.js +0 -246
- package/dist/cli/init.unitTest.js +0 -0
- package/dist/cli/lib/defaultConfig.test.js +0 -9
- package/dist/cli/lib/loadTestFileStatic.js +0 -41
- package/dist/cli/lib/loadTestFileStatic.unitTest.js +0 -30
- package/dist/cli/lib/processWatchEvent.js +0 -1
- package/dist/cli/lib/processWatchEvent.unitTest.js +0 -15
- package/dist/cli/lib/runDescribe.old.js +0 -108
- package/dist/cli/lib/runDescribe.old.unitTest.js +0 -440
- package/dist/cli/lib/runTest-old.js +0 -160
- package/dist/cli/lib/runTest-old.unitTest.js +0 -184
- package/dist/cli/lib/watchFiles.unitTest.js +0 -50
- package/dist/cli/once.unitTest.js +0 -39
- package/dist/describe-old.js +0 -271
- package/dist/describe-old.unitTest.js +0 -30
- package/dist/exported.eslintrc.js +0 -7
- package/dist/lib/arrayRemove.d.ts +0 -2
- package/dist/lib/arrayRemove.d.ts.map +0 -1
- package/dist/lib/arrayRemove.js +0 -15
- package/dist/lib/arrayRemove.js.map +0 -1
- package/dist/lib/promiseAllObj.d.ts +0 -2
- package/dist/lib/promiseAllObj.d.ts.map +0 -1
- package/dist/lib/promiseAllObj.js +0 -14
- package/dist/lib/promiseAllObj.js.map +0 -1
- package/dist/testsState.js +0 -5
- package/dist/timeProfiling.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watchFilesAndRunTestsChokidar.js","sourceRoot":"","sources":["../../../src/cli/lib/watchFilesAndRunTestsChokidar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"watchFilesAndRunTestsChokidar.js","sourceRoot":"","sources":["../../../src/cli/lib/watchFilesAndRunTestsChokidar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,MAAM,yBAAyB,CAAA;AAC3C,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,MAAM,yBAAyB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACx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AM,EAAE,YAAY,EAAE,SAAS,CAAC,CAAA;4BAC3D,CAAC,CAAC,CAAA;wBACN,CAAC;oBACL,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,GAAG,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAA;oBACjC,CAAC;gBACL,CAAC,CAAC,CAAA;YACN,CAAC,EAAE,EAAE,CAAC,CAAA;QACV,CAAC,CAAC,qBAAqB;QAEvB,SAAS,UAAU,CAAC,QAAgB;YAChC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;YAC3B,MAAM,cAAc,GAAG,mBAAmB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;YAC5D,eAAe,CAAC,QAAQ,CAAC,GAAG,cAAc;iBACrC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;iBACrD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAA;QACpC,CAAC;IACL,CAAC,CAAC,CAAA;IAEF,mFAAmF;IACnF,gFAAgF;IAChF,8EAA8E;IAC9E,qCAAqC;AACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchFilesAndRunTestsChokidar.unitTest.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/watchFilesAndRunTestsChokidar.unitTest.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
1
|
import { promises as fs, existsSync } from 'fs';
|
|
2
|
-
import figures from 'figures';
|
|
3
|
-
import { objectCopy } from 'sxy-lib-object-copy';
|
|
2
|
+
import figures from '../../packages/figures.js';
|
|
4
3
|
import { watchFilesAndRunTestsChokidar } from './watchFilesAndRunTestsChokidar.js';
|
|
5
4
|
import { applyConfigDefaults } from './applyConfigDefaults.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const testFileName = 'watchTests/watchFilesAndRunTestsChokidar/a.test.js';
|
|
32
|
-
const thing = 'Sample test 1';
|
|
33
|
-
const should = '1 should equal 1';
|
|
34
|
-
await watchFilesAndRunTestsChokidar(config, [], {}, [], customOut);
|
|
35
|
-
await outBuffer.should.equal('');
|
|
36
|
-
await fs.writeFile(testFileName, `import { describe } from '../../dist/index.js'
|
|
5
|
+
mochaDescribe('watchFilesAndRunTestsChokidar() function', function () {
|
|
6
|
+
const tempFolder = 'watchTests/watchFilesAndRunTestsChokidar';
|
|
7
|
+
const baseConfig = applyConfigDefaults({
|
|
8
|
+
testsBase: tempFolder,
|
|
9
|
+
tests: '**/*.test.js',
|
|
10
|
+
watch: {
|
|
11
|
+
watchFilesBase: tempFolder,
|
|
12
|
+
watchFiles: '**/*.js'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
mochaIt('should run a test when a test file is changed', async function () {
|
|
16
|
+
const config = structuredClone(baseConfig);
|
|
17
|
+
// ignore the file from the last test, causing load errors
|
|
18
|
+
config.testsIgnore = '**/c.test.js';
|
|
19
|
+
// create a custom out function to capture the output
|
|
20
|
+
let outBuffer = '';
|
|
21
|
+
const customOut = (...texts) => {
|
|
22
|
+
outBuffer += texts.join(' ') + '\n';
|
|
23
|
+
};
|
|
24
|
+
const testFileName = 'watchTests/watchFilesAndRunTestsChokidar/a.test.js';
|
|
25
|
+
const thing = 'Sample test 1';
|
|
26
|
+
const should = '1 should equal 1';
|
|
27
|
+
await watchFilesAndRunTestsChokidar(config, [], {}, [], customOut);
|
|
28
|
+
outBuffer.should.equal('');
|
|
29
|
+
void fs.writeFile(testFileName, `import { describe } from '../../dist/index.js'
|
|
37
30
|
import { expect, should } from 'chai'
|
|
38
31
|
should()
|
|
39
32
|
|
|
@@ -44,34 +37,31 @@ describe('${thing}', ({it}) => {
|
|
|
44
37
|
})
|
|
45
38
|
|
|
46
39
|
})`);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
await watchFilesAndRunTestsChokidar(config, [], {}, [], customOut);
|
|
73
|
-
await outBuffer.should.equal('');
|
|
74
|
-
await fs.writeFile(testFileName, `import { describe } from '../../dist/index.js'
|
|
40
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
41
|
+
outBuffer.should.include(testFileName);
|
|
42
|
+
outBuffer.should.include(thing);
|
|
43
|
+
outBuffer.should.include(should);
|
|
44
|
+
outBuffer.should.include(figures.tick);
|
|
45
|
+
});
|
|
46
|
+
mochaIt('should run a test when a new test file is changed', async function () {
|
|
47
|
+
const config = structuredClone(baseConfig);
|
|
48
|
+
// ignore the file from the last test, causing load errors
|
|
49
|
+
config.testsIgnore = '**/c.test.js';
|
|
50
|
+
// create a custom out function to capture the output
|
|
51
|
+
let outBuffer = '';
|
|
52
|
+
const customOut = (...texts) => {
|
|
53
|
+
outBuffer += texts.join(' ') + '\n';
|
|
54
|
+
};
|
|
55
|
+
const testFileName = `${tempFolder}/b.test.js`;
|
|
56
|
+
const thing = 'Sample test 2';
|
|
57
|
+
const should = '2 should equal 2';
|
|
58
|
+
if (existsSync(testFileName)) {
|
|
59
|
+
await fs.unlink(testFileName);
|
|
60
|
+
}
|
|
61
|
+
existsSync(testFileName).should.equal(false);
|
|
62
|
+
await watchFilesAndRunTestsChokidar(config, [], {}, [], customOut);
|
|
63
|
+
outBuffer.should.equal('');
|
|
64
|
+
void fs.writeFile(testFileName, `import { describe } from '../../dist/index.js'
|
|
75
65
|
import { expect, should } from 'chai'
|
|
76
66
|
should()
|
|
77
67
|
|
|
@@ -82,27 +72,24 @@ describe('${thing}', ({it}) => {
|
|
|
82
72
|
})
|
|
83
73
|
|
|
84
74
|
})`);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
const should = '3 should equal 3';
|
|
104
|
-
if (!(await existsSync(testFileName))) {
|
|
105
|
-
await fs.writeFile(testFileName, `import { describe } from '../../dist/index.js'
|
|
75
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
76
|
+
outBuffer.should.include(testFileName);
|
|
77
|
+
outBuffer.should.include(thing);
|
|
78
|
+
outBuffer.should.include(should);
|
|
79
|
+
outBuffer.should.include(figures.tick);
|
|
80
|
+
});
|
|
81
|
+
mochaIt('removes a test from tests and dependencyTrees when it is deleted', async function () {
|
|
82
|
+
const config = structuredClone(baseConfig);
|
|
83
|
+
// create a custom out function to capture the output
|
|
84
|
+
let outBuffer = '';
|
|
85
|
+
const customOut = (...texts) => {
|
|
86
|
+
outBuffer += texts.join(' ') + '\n';
|
|
87
|
+
};
|
|
88
|
+
const testFileName = `${tempFolder}/c.test.js`;
|
|
89
|
+
const thing = 'Sample test 3';
|
|
90
|
+
const should = '3 should equal 3';
|
|
91
|
+
if (!existsSync(testFileName)) {
|
|
92
|
+
await fs.writeFile(testFileName, `import { describe } from '../../dist/index.js'
|
|
106
93
|
import { expect, should } from 'chai'
|
|
107
94
|
should()
|
|
108
95
|
|
|
@@ -113,20 +100,24 @@ describe('${thing}', ({it}) => {
|
|
|
113
100
|
})
|
|
114
101
|
|
|
115
102
|
})`);
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
103
|
+
}
|
|
104
|
+
existsSync(testFileName).should.be.true;
|
|
105
|
+
const originalTests = [testFileName];
|
|
106
|
+
const originalDependencyTrees = {
|
|
107
|
+
[testFileName]: [
|
|
108
|
+
'dep-1.js',
|
|
109
|
+
'dep-2.js'
|
|
110
|
+
]
|
|
111
|
+
};
|
|
112
|
+
const tests = structuredClone(originalTests);
|
|
113
|
+
const dependencyTrees = structuredClone(originalDependencyTrees);
|
|
114
|
+
tests.should.include.members([testFileName]);
|
|
115
|
+
dependencyTrees.should.include.keys([testFileName]);
|
|
116
|
+
await watchFilesAndRunTestsChokidar(config, tests, dependencyTrees, [], customOut);
|
|
117
|
+
await fs.unlink(testFileName);
|
|
118
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
119
|
+
tests.should.not.include.members([testFileName]);
|
|
120
|
+
dependencyTrees.should.not.include.keys([testFileName]);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=watchFilesAndRunTestsChokidar.unitTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchFilesAndRunTestsChokidar.unitTest.js","sourceRoot":"","sources":["../../../src/cli/lib/watchFilesAndRunTestsChokidar.unitTest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AAC/C,OAA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CAAA;QAEhE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;QAC5C,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;QAEnD,MAAM,6BAA6B,CAAC,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;QAElF,MAAM,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;QAE7B,MAAM,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;QAE7D,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;QAChD,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;IAC3D,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watchFilesAndRunTestsNodeWatch.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/watchFilesAndRunTestsNodeWatch.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAIpE,wBAAsB,8BAA8B,CAChD,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,EACnB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,MAAM,EAAE,EACtB,SAAS,CAAC,EAAE,KAAK,GAClB,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"watchFilesAndRunTestsNodeWatch.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/watchFilesAndRunTestsNodeWatch.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAIpE,wBAAsB,8BAA8B,CAChD,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,EACnB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,MAAM,EAAE,EACtB,SAAS,CAAC,EAAE,KAAK,GAClB,OAAO,CAAC,IAAI,CAAC,CA+Hf"}
|
|
@@ -1,160 +1,120 @@
|
|
|
1
|
-
import { createTimeProfiler } from '
|
|
1
|
+
import { createTimeProfiler } from '../../packages/timeProfiler.js';
|
|
2
2
|
import { showTimeProfiling } from '../../config.js';
|
|
3
|
-
import chalk from 'chalk
|
|
3
|
+
import chalk from '../../packages/chalk.js';
|
|
4
4
|
import minimatch from 'minimatch';
|
|
5
|
-
import slash from 'slash';
|
|
6
|
-
//import watch from 'node-watch'
|
|
7
|
-
//import chokidar from 'chokidar'
|
|
8
|
-
//import nsfw from 'nsfw'
|
|
9
|
-
import fs from 'fs';
|
|
5
|
+
import slash from '../../packages/slash.js';
|
|
10
6
|
import { out, log, debug } from '../../output.js';
|
|
11
7
|
import { runTests } from './runTests.js';
|
|
12
8
|
import { buildDependencyTree } from './buildDependencyTree.js';
|
|
13
9
|
import { globArgCombine } from './globArgCombine.js';
|
|
14
|
-
//import { load } from './load.js.depr/index.js'
|
|
15
|
-
|
|
16
|
-
const {
|
|
17
|
-
timeProfileAsync
|
|
18
|
-
} = await createTimeProfiler(showTimeProfiling);
|
|
19
10
|
import { addBasePath } from './addBasePath.js';
|
|
20
11
|
import { watchFilesNodeWatch } from './watchFilesNodeWatch.js';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
await
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
//log('testsIgnore glob', globArgCombine(testsIgnoreGlobs))
|
|
40
|
-
|
|
41
|
-
let changedFiles = [];
|
|
42
|
-
let timeout = null;
|
|
43
|
-
if (!config.watch.watchFilesBase) {
|
|
44
|
-
await out(`No config.watch.watchFilesBase provided, defaulting to '.'`);
|
|
45
|
-
config.watch.watchFilesBase = '.';
|
|
46
|
-
}
|
|
47
|
-
watcher = await watchFilesNodeWatch(config, watchEvent);
|
|
48
|
-
async function watchEvent(filename, event) {
|
|
49
|
-
await debug('handle watch event ', filename, event);
|
|
50
|
-
filename = await slash(filename);
|
|
51
|
-
|
|
52
|
-
// remove dep tree for any tests that are deleted, avoiding trying to run it later
|
|
53
|
-
|
|
54
|
-
if (event === 'remove') {
|
|
55
|
-
await debug('removing test', filename);
|
|
56
|
-
if (filename in dependencyTrees) {
|
|
57
|
-
await testFiles.remove(filename); // arrayRemove?
|
|
58
|
-
delete dependencyTrees[filename];
|
|
12
|
+
import { remove as arrayRemove } from 'sxy-lib/arrays.js';
|
|
13
|
+
const { timeProfileAsync } = createTimeProfiler(showTimeProfiling);
|
|
14
|
+
export async function watchFilesAndRunTestsNodeWatch(config, testFiles, dependencyTrees, failingTests, customOut) {
|
|
15
|
+
const projectDir = process.cwd();
|
|
16
|
+
await timeProfileAsync('init watching', async () => {
|
|
17
|
+
debug('failingTests', failingTests);
|
|
18
|
+
const testsGlobs = addBasePath(config.testsBase, config.tests);
|
|
19
|
+
const testsIgnoreGlobs = addBasePath(config.testsBase, config.testsIgnore);
|
|
20
|
+
// indentify a test file
|
|
21
|
+
const testFilter = (file) => {
|
|
22
|
+
return minimatch(file, globArgCombine(testsGlobs))
|
|
23
|
+
&& !minimatch(file, globArgCombine(testsIgnoreGlobs));
|
|
24
|
+
};
|
|
25
|
+
let changedFiles = [];
|
|
26
|
+
let timeout = null;
|
|
27
|
+
if (config.watch.watchFilesBase === '') {
|
|
28
|
+
out('No config.watch.watchFilesBase provided, defaulting to \'.\'');
|
|
29
|
+
config.watch.watchFilesBase = '.';
|
|
59
30
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
await clearTimeout(timeout);
|
|
71
|
-
}
|
|
72
|
-
timeout = await setTimeout(async () => {
|
|
73
|
-
await timeProfileAsync('handle changed files', async () => {
|
|
74
|
-
await debug('changedFiles', changedFiles);
|
|
75
|
-
try {
|
|
76
|
-
// build related test list
|
|
77
|
-
const tests = [];
|
|
78
|
-
for (const [file, event] of changedFiles) {
|
|
79
|
-
await debug('check', file);
|
|
80
|
-
await debug('1 tests', tests);
|
|
81
|
-
if (event !== 'remove') {
|
|
82
|
-
// only check to see if its a test if it exists (has not just been removed)
|
|
83
|
-
if (await testFilter(file)) {
|
|
84
|
-
// it is a test file itself, add to run list
|
|
85
|
-
await debug('its a test', file);
|
|
86
|
-
await tests.push(file);
|
|
87
|
-
if (!(file in dependencyTrees)) {
|
|
88
|
-
// if its a new test
|
|
89
|
-
await debug('try to add a new test', file), await addNewTest(file);
|
|
90
|
-
}
|
|
31
|
+
await watchFilesNodeWatch(config, watchEvent);
|
|
32
|
+
function watchEvent(filename, event) {
|
|
33
|
+
debug('handle watch event ', filename, event);
|
|
34
|
+
filename = slash(filename);
|
|
35
|
+
// remove dep tree for any tests that are deleted, avoiding trying to run it later
|
|
36
|
+
if (event === 'remove') {
|
|
37
|
+
debug('removing test', filename);
|
|
38
|
+
if (filename in dependencyTrees) {
|
|
39
|
+
arrayRemove(testFiles, filename);
|
|
40
|
+
delete dependencyTrees[filename];
|
|
91
41
|
}
|
|
92
|
-
}
|
|
93
|
-
await debug('dtrees', dependencyTrees);
|
|
94
|
-
await debug('2 tests', tests);
|
|
95
|
-
for (const f of await Object.getOwnPropertyNames(dependencyTrees)) {
|
|
96
|
-
await debug('dep tree', f, dependencyTrees[f]);
|
|
97
|
-
if (await dependencyTrees[f].some(dep => {
|
|
98
|
-
debug('checking dep', dep, file);
|
|
99
|
-
return dep === file;
|
|
100
|
-
})) {
|
|
101
|
-
// a test depends on this file
|
|
102
|
-
await debug('its a dependency', file);
|
|
103
|
-
await debug('its a dependency', file);
|
|
104
|
-
await tests.push(f);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
42
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
for (const failingTest of failingTests) {
|
|
116
|
-
if (!(await fs.existsSync(failingTest))) {
|
|
117
|
-
//debug('remove failing test', failingTest)
|
|
118
|
-
await failingTests.remove(failingTest); // arrayRemove?
|
|
119
|
-
//(failingTests)
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
await debug('tests', tests);
|
|
124
|
-
await debug('failingTests', failingTests);
|
|
125
|
-
await debug('reRunFailingTests', config.watch.reRunFailingTests);
|
|
126
|
-
const toTest = config.watch.reRunFailingTests ? await (await [...tests, ...failingTests].dedupeSlow()).reverse() // dedupe return new? // reverse in place
|
|
127
|
-
: await [...tests].reverse(); // reverse in place
|
|
128
|
-
|
|
129
|
-
const results = {
|
|
130
|
-
total: 0,
|
|
131
|
-
passed: 0
|
|
132
|
-
};
|
|
133
|
-
await debug('run tests on change');
|
|
134
|
-
await debug('toTest', toTest);
|
|
135
|
-
|
|
136
|
-
// clear load cache to allow accesing the new test
|
|
137
|
-
//load.cache.clear()
|
|
138
|
-
|
|
139
|
-
const testResults = await runTests(config, toTest, failingTests, customOut);
|
|
140
|
-
});
|
|
43
|
+
// info on the event found
|
|
44
|
+
out(chalk.grey `change: ${filename} (${event})`);
|
|
45
|
+
// add the file to changed files
|
|
46
|
+
changedFiles.push([filename, event]);
|
|
47
|
+
// wait 100ms after any change before processing, to avoid multiple execution?
|
|
48
|
+
if (timeout) {
|
|
49
|
+
clearTimeout(timeout);
|
|
141
50
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
51
|
+
timeout = setTimeout(() => {
|
|
52
|
+
void timeProfileAsync('handle changed files', async () => {
|
|
53
|
+
debug('changedFiles', changedFiles);
|
|
54
|
+
try {
|
|
55
|
+
// build related test list
|
|
56
|
+
const tests = [];
|
|
57
|
+
for (const [file, fileEvent] of changedFiles) {
|
|
58
|
+
debug('check', file);
|
|
59
|
+
debug('1 tests', tests);
|
|
60
|
+
if (fileEvent !== 'remove') { // only check if it's a test if it exists (has not just been removed)
|
|
61
|
+
if (testFilter(file)) { // it is a test file itself, add to run list
|
|
62
|
+
debug('its a test', file);
|
|
63
|
+
tests.push(file);
|
|
64
|
+
if (!(file in dependencyTrees)) { // if its a new test
|
|
65
|
+
debug('try to add a new test', file);
|
|
66
|
+
addNewTest(file);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
debug('dtrees', dependencyTrees);
|
|
71
|
+
debug('2 tests', tests);
|
|
72
|
+
for (const f of Object.getOwnPropertyNames(dependencyTrees)) {
|
|
73
|
+
debug('dep tree', f, dependencyTrees[f]);
|
|
74
|
+
if (dependencyTrees[f]?.some(dep => dep === file) === true) { // a test depends on this file
|
|
75
|
+
debug('its a dependency', file);
|
|
76
|
+
tests.push(f);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
changedFiles = [];
|
|
81
|
+
debug('tests', tests);
|
|
82
|
+
if (tests.length) {
|
|
83
|
+
await timeProfileAsync('run tests related to changes', async () => {
|
|
84
|
+
debug('tests', tests);
|
|
85
|
+
// NOTE: the original guarded this cleanup with `config.reRunFailingTests`
|
|
86
|
+
// (missing the `.watch.` prefix every other reference here uses), which is
|
|
87
|
+
// always undefined - so this block never ran. Preserved as dead code rather
|
|
88
|
+
// than newly activating it as part of a TS conversion.
|
|
89
|
+
debug('tests', tests);
|
|
90
|
+
debug('failingTests', failingTests);
|
|
91
|
+
debug('reRunFailingTests', config.watch.reRunFailingTests);
|
|
92
|
+
const toTest = config.watch.reRunFailingTests
|
|
93
|
+
? [...new Set([...tests, ...failingTests])].reverse()
|
|
94
|
+
: [...tests].reverse();
|
|
95
|
+
debug('run tests on change');
|
|
96
|
+
debug('toTest', toTest);
|
|
97
|
+
await runTests(config, toTest, failingTests, customOut);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
log('watch handler error', e);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}, 33);
|
|
106
|
+
} // end of watch event
|
|
107
|
+
function addNewTest(testFile) {
|
|
108
|
+
debug('new test', testFile);
|
|
109
|
+
const dependencyTree = buildDependencyTree(config, testFile);
|
|
110
|
+
dependencyTrees[testFile] = dependencyTree
|
|
111
|
+
.map(file => slash(file).slice(projectDir.length + 1))
|
|
112
|
+
.filter(f => f !== testFile);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
// NOTE: "watching..." is intentionally NOT printed here. watch() already emits it,
|
|
116
|
+
// tied to a real milestone (the initial test run finishing, or no tests found).
|
|
117
|
+
// Printing it again here produced a duplicate "watching..." on every startup.
|
|
118
|
+
// out(chalk.brightblue`watching...`)
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=watchFilesAndRunTestsNodeWatch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watchFilesAndRunTestsNodeWatch.js","sourceRoot":"","sources":["../../../src/cli/lib/watchFilesAndRunTestsNodeWatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"watchFilesAndRunTestsNodeWatch.js","s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