sxy-test-runner 1.4.5 → 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.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +24 -22
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/init.d.ts +2 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +41 -91
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/lib/addBasePath.d.ts +3 -0
- package/dist/cli/lib/addBasePath.d.ts.map +1 -0
- package/dist/cli/lib/addBasePath.js +12 -14
- package/dist/cli/lib/addBasePath.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/addExports.d.ts.map +1 -0
- package/dist/cli/lib/addExports.js +13 -11
- package/dist/cli/lib/addExports.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/applyConfigDefaults.d.ts.map +1 -0
- package/dist/cli/lib/applyConfigDefaults.js +6 -42
- package/dist/cli/lib/applyConfigDefaults.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/buildDependencyTree.d.ts.map +1 -0
- package/dist/cli/lib/buildDependencyTree.js +23 -34
- package/dist/cli/lib/buildDependencyTree.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/buildDependencyTrees.d.ts.map +1 -0
- package/dist/cli/lib/buildDependencyTrees.js +15 -34
- package/dist/cli/lib/buildDependencyTrees.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/defaultConfig.d.ts.map +1 -0
- package/dist/cli/lib/defaultConfig.js +23 -21
- package/dist/cli/lib/defaultConfig.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/doUserSetup.d.ts.map +1 -0
- package/dist/cli/lib/doUserSetup.js +20 -23
- package/dist/cli/lib/doUserSetup.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/doUserTeardown.d.ts.map +1 -0
- package/dist/cli/lib/doUserTeardown.js +21 -23
- package/dist/cli/lib/doUserTeardown.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/findTestFiles.d.ts.map +1 -0
- package/dist/cli/lib/findTestFiles.js +16 -24
- package/dist/cli/lib/findTestFiles.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/getAllowedFlags.d.ts.map +1 -0
- package/dist/cli/lib/getAllowedFlags.js +10 -8
- package/dist/cli/lib/getAllowedFlags.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/globArgCombine.d.ts.map +1 -0
- package/dist/cli/lib/globArgCombine.js +8 -1
- package/dist/cli/lib/globArgCombine.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/injectProperties.d.ts.map +1 -0
- package/dist/cli/lib/injectProperties.js +10 -10
- package/dist/cli/lib/injectProperties.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/loadConfig.d.ts.map +1 -0
- package/dist/cli/lib/loadConfig.js +14 -18
- package/dist/cli/lib/loadConfig.js.map +1 -0
- 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.d.ts +4 -0
- package/dist/cli/lib/loadTestFile.d.ts.map +1 -0
- package/dist/cli/lib/loadTestFile.js +48 -78
- package/dist/cli/lib/loadTestFile.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/parseCommandLineArguments.d.ts.map +1 -0
- package/dist/cli/lib/parseCommandLineArguments.js +48 -42
- package/dist/cli/lib/parseCommandLineArguments.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/parseDescribe.d.ts.map +1 -0
- package/dist/cli/lib/parseDescribe.js +67 -81
- package/dist/cli/lib/parseDescribe.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/runDescribe.d.ts.map +1 -0
- package/dist/cli/lib/runDescribe.js +39 -39
- package/dist/cli/lib/runDescribe.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/runDescribeRun.d.ts.map +1 -0
- package/dist/cli/lib/runDescribeRun.js +34 -49
- package/dist/cli/lib/runDescribeRun.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/runIt.d.ts.map +1 -0
- package/dist/cli/lib/runIt.js +59 -69
- package/dist/cli/lib/runIt.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/runTasks.d.ts.map +1 -0
- package/dist/cli/lib/runTasks.js +28 -31
- package/dist/cli/lib/runTasks.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/runTest.d.ts.map +1 -0
- package/dist/cli/lib/runTest.js +54 -66
- package/dist/cli/lib/runTest.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/runTests.d.ts.map +1 -0
- package/dist/cli/lib/runTests.js +123 -141
- package/dist/cli/lib/runTests.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/showTestLoadingError.d.ts.map +1 -0
- package/dist/cli/lib/showTestLoadingError.js +22 -33
- package/dist/cli/lib/showTestLoadingError.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/showTestResult.d.ts.map +1 -0
- package/dist/cli/lib/showTestResult.js +88 -88
- package/dist/cli/lib/showTestResult.js.map +1 -0
- 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.d.ts +3 -0
- package/dist/cli/lib/timeProfier.d.ts.map +1 -0
- package/dist/cli/lib/timeProfier.js +4 -6
- package/dist/cli/lib/timeProfier.js.map +1 -0
- package/dist/cli/lib/validateConfig.d.ts +3 -0
- package/dist/cli/lib/validateConfig.d.ts.map +1 -0
- package/dist/cli/lib/validateConfig.js +21 -24
- package/dist/cli/lib/validateConfig.js.map +1 -0
- 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.d.ts +2 -0
- package/dist/cli/lib/watchFilesAndRunTests.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTests.js +2 -3
- package/dist/cli/lib/watchFilesAndRunTests.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.js +99 -127
- package/dist/cli/lib/watchFilesAndRunTestsChokidar.js.map +1 -0
- 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 +3 -0
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js +108 -148
- package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js.map +1 -0
- 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.d.ts +4 -0
- package/dist/cli/lib/watchFilesChokidar.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesChokidar.js +30 -56
- package/dist/cli/lib/watchFilesChokidar.js.map +1 -0
- 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.d.ts +7 -0
- package/dist/cli/lib/watchFilesNodeWatch.d.ts.map +1 -0
- package/dist/cli/lib/watchFilesNodeWatch.js +31 -41
- package/dist/cli/lib/watchFilesNodeWatch.js.map +1 -0
- 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.d.ts +2 -0
- package/dist/cli/once.d.ts.map +1 -0
- package/dist/cli/once.js +35 -42
- package/dist/cli/once.js.map +1 -0
- package/dist/cli/watch.d.ts +2 -0
- package/dist/cli/watch.d.ts.map +1 -0
- package/dist/cli/watch.js +64 -114
- package/dist/cli/watch.js.map +1 -0
- 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 +7 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +13 -2
- package/dist/config.js.map +1 -0
- package/dist/describe.d.ts +3 -0
- package/dist/describe.d.ts.map +1 -0
- package/dist/describe.js +20 -34
- package/dist/describe.js.map +1 -0
- 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.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -0
- package/dist/indexNumberToLetters.d.ts +2 -0
- package/dist/indexNumberToLetters.d.ts.map +1 -0
- package/dist/indexNumberToLetters.js +12 -11
- package/dist/indexNumberToLetters.js.map +1 -0
- package/dist/output.d.ts +6 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/output.js +16 -18
- package/dist/output.js.map +1 -0
- 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 +138 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- 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/testsState.js +0 -5
- package/dist/timeProfiling.js +0 -9
|
@@ -1,295 +1,280 @@
|
|
|
1
1
|
import { applyConfigDefaults } from './applyConfigDefaults.js';
|
|
2
2
|
import { loadTestFile } from './loadTestFile.js';
|
|
3
3
|
import { runTest } from './runTest.js';
|
|
4
|
-
const defaultConfig =
|
|
4
|
+
const defaultConfig = applyConfigDefaults({});
|
|
5
5
|
const beforeAfterTestFile = 'unitTesting/runTest/beforeAfter.test.js';
|
|
6
6
|
const beforeAfterTest = await loadTestFile(defaultConfig, beforeAfterTestFile);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
await testResult.describeResultsSummary.itsTotal.should.equal(1);
|
|
24
|
-
await testResult.describeResultsSummary.itsPasses.should.equal(1);
|
|
25
|
-
});
|
|
26
|
-
await mochaIt('should return sensible results from a test file without any describes', async function () {
|
|
27
|
-
//const config = applyConfigDefaults({})
|
|
28
|
-
|
|
29
|
-
const sampleTestFile = 'unitTesting/sampletests/blank.test.js';
|
|
30
|
-
const sampleTest = await loadTestFile(defaultConfig, sampleTestFile);
|
|
31
|
-
const testResult = await runTest(defaultConfig, sampleTest);
|
|
32
|
-
|
|
33
|
-
//console.log(testResult)
|
|
34
|
-
//console.log(testResult.describeResults[0].itResults)
|
|
35
|
-
//console.log(testResult.describeResults[0].itResultsSummary)
|
|
36
|
-
|
|
37
|
-
await testResult.should.include.keys(['file', 'success', 'describeResults', 'describeResultsSummary']);
|
|
38
|
-
(await chaiExpect(testResult.success)).to.be.null;
|
|
39
|
-
|
|
40
|
-
//testResult.describeResultsSummary.total.should.equal(1)
|
|
41
|
-
//testResult.describeResultsSummary.passes.should.equal(1)
|
|
42
|
-
//testResult.describeResultsSummary.itsTotal.should.equal(1)
|
|
43
|
-
//testResult.describeResultsSummary.itsPasses.should.equal(1)
|
|
44
|
-
});
|
|
45
|
-
await mochaIt('should return sensible results from a test file with describes without any its/tests', async function () {
|
|
46
|
-
//const config = applyConfigDefaults({})
|
|
47
|
-
|
|
48
|
-
const sampleTestFile = 'unitTesting/sampletests/describesWithoutTests.test.js';
|
|
49
|
-
const sampleTest = await loadTestFile(defaultConfig, sampleTestFile);
|
|
50
|
-
const testResult = await runTest(defaultConfig, sampleTest);
|
|
51
|
-
|
|
52
|
-
//console.log(testResult)
|
|
53
|
-
//console.log(testResult.describeResults[0].itResults)
|
|
54
|
-
//console.log(testResult.describeResults[0].itResultsSummary)
|
|
55
|
-
|
|
56
|
-
await testResult.should.include.keys(['file', 'success', 'describeResults', 'describeResultsSummary']);
|
|
57
|
-
(await chaiExpect(testResult.success)).to.be.null;
|
|
58
|
-
await testResult.describeResultsSummary.total.should.equal(0);
|
|
59
|
-
await testResult.describeResultsSummary.passes.should.equal(0);
|
|
60
|
-
await testResult.describeResultsSummary.invalid.should.equal(2);
|
|
61
|
-
await testResult.describeResultsSummary.itsTotal.should.equal(0);
|
|
62
|
-
await testResult.describeResultsSummary.itsPasses.should.equal(0);
|
|
63
|
-
});
|
|
64
|
-
await mochaIt("should run beforeEachFile tasks (before - can't test)", async function () {
|
|
65
|
-
let functionHasRun = false;
|
|
66
|
-
global.beforeEachFileFileHasRun = false;
|
|
67
|
-
const ourConfig = {
|
|
68
|
-
beforeEachFile: [async function () {
|
|
69
|
-
functionHasRun = true;
|
|
70
|
-
}, 'unitTesting/runTest/beforeEachFile.js']
|
|
71
|
-
};
|
|
72
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
73
|
-
await runTest(config, beforeAfterTest);
|
|
74
|
-
await functionHasRun.should.equal(true);
|
|
75
|
-
await global.beforeEachFileFileHasRun.should.equal(true);
|
|
76
|
-
});
|
|
77
|
-
await mochaIt("should run afterEachFile tasks (after - can't test)", async function () {
|
|
78
|
-
let functionHasRun = false;
|
|
79
|
-
global.afterEachFileFileHasRun = false;
|
|
80
|
-
const ourConfig = {
|
|
81
|
-
afterEachFile: [async function () {
|
|
82
|
-
functionHasRun = true;
|
|
83
|
-
}, 'unitTesting/runTest/afterEachFile.js']
|
|
84
|
-
};
|
|
85
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
86
|
-
await runTest(config, beforeAfterTest);
|
|
87
|
-
await functionHasRun.should.equal(true);
|
|
88
|
-
await global.afterEachFileFileHasRun.should.equal(true);
|
|
89
|
-
});
|
|
90
|
-
await mochaIt("should run beforeEachDescribe tasks (before - can't test) each describe block", async function () {
|
|
91
|
-
let functionHasRunTimes = 0;
|
|
92
|
-
global.beforeEachDescribeFileHasRun = false;
|
|
93
|
-
const ourConfig = {
|
|
94
|
-
beforeEachDescribe: [async function () {
|
|
95
|
-
functionHasRunTimes++;
|
|
96
|
-
}, 'unitTesting/runTest/beforeEachDescribe.js']
|
|
97
|
-
};
|
|
98
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
99
|
-
await runTest(config, beforeAfterTest);
|
|
100
|
-
await functionHasRunTimes.should.equal(2);
|
|
101
|
-
await global.beforeEachDescribeFileHasRun.should.equal(true);
|
|
102
|
-
});
|
|
103
|
-
await mochaIt("should run afterEachDescribe tasks (after - can't test) each describe block", async function () {
|
|
104
|
-
let functionHasRunTimes = 0;
|
|
105
|
-
global.afterEachDescribeFileHasRun = false;
|
|
106
|
-
const ourConfig = {
|
|
107
|
-
afterEachDescribe: [async function () {
|
|
108
|
-
functionHasRunTimes++;
|
|
109
|
-
}, 'unitTesting/runTest/afterEachDescribe.js']
|
|
110
|
-
};
|
|
111
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
112
|
-
await runTest(config, beforeAfterTest);
|
|
113
|
-
await functionHasRunTimes.should.equal(2);
|
|
114
|
-
await global.afterEachDescribeFileHasRun.should.equal(true);
|
|
115
|
-
});
|
|
116
|
-
await mochaIt("should run beforeEachTest tasks (before - can't test) each test/it block", async function () {
|
|
117
|
-
let functionHasRunTimes = 0;
|
|
118
|
-
global.beforeEachTestbeforeEachFileFileHasRun = false;
|
|
119
|
-
const ourConfig = {
|
|
120
|
-
beforeEachTest: [async function () {
|
|
121
|
-
functionHasRunTimes++;
|
|
122
|
-
}, 'unitTesting/runTest/beforeEachTest.js']
|
|
123
|
-
};
|
|
124
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
125
|
-
await runTest(config, beforeAfterTest);
|
|
126
|
-
await functionHasRunTimes.should.equal(3);
|
|
127
|
-
await global.beforeEachTestFileHasRun.should.equal(true);
|
|
128
|
-
});
|
|
129
|
-
await mochaIt("should run afterEachTest tasks (after - can't test) each test/it block", async function () {
|
|
130
|
-
let functionHasRunTimes = 0;
|
|
131
|
-
global.afterEachTestFileFileHasRun = false;
|
|
132
|
-
const ourConfig = {
|
|
133
|
-
afterEachTest: [async function () {
|
|
134
|
-
functionHasRunTimes++;
|
|
135
|
-
}, 'unitTesting/runTest/afterEachTest.js']
|
|
136
|
-
};
|
|
137
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
138
|
-
await runTest(config, beforeAfterTest);
|
|
139
|
-
await functionHasRunTimes.should.equal(3);
|
|
140
|
-
await global.afterEachTestFileHasRun.should.equal(true);
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
// exports provision to test file
|
|
144
|
-
|
|
145
|
-
// current beforeEachFile exports aren't provided
|
|
146
|
-
// perhaps extend sxy-loader to allow this
|
|
147
|
-
|
|
148
|
-
await mochaIt("should pass exported/returned data from beforeEachDescribe tasks", async function () {
|
|
149
|
-
const testFile = 'unitTesting/runTest/beforeEachDescribe.test.js';
|
|
150
|
-
const test = await loadTestFile(defaultConfig, testFile);
|
|
151
|
-
const ourConfig = {
|
|
152
|
-
beforeEachDescribe: [async function () {
|
|
153
|
-
return {
|
|
154
|
-
functionThing: 'foo'
|
|
155
|
-
};
|
|
156
|
-
}, 'unitTesting/runTest/beforeEachDescribeExport.js']
|
|
157
|
-
};
|
|
158
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
159
|
-
await runTest(config, test);
|
|
160
|
-
await global.functionThing.should.equal('foo');
|
|
161
|
-
await global.fileThing.should.equal('bar');
|
|
162
|
-
});
|
|
163
|
-
await mochaIt("should pass exported/returned data from beforeEachTest tasks", async function () {
|
|
164
|
-
const testFile = 'unitTesting/runTest/beforeEachTest.test.js';
|
|
165
|
-
const test = await loadTestFile(defaultConfig, testFile);
|
|
166
|
-
const ourConfig = {
|
|
167
|
-
beforeEachTest: [async function () {
|
|
168
|
-
return {
|
|
169
|
-
functionThing: 'foo'
|
|
170
|
-
};
|
|
171
|
-
}, 'unitTesting/runTest/beforeEachTestExport.js']
|
|
172
|
-
};
|
|
173
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
174
|
-
await runTest(config, test);
|
|
175
|
-
await global.functionThing.should.equal('foo');
|
|
176
|
-
await global.fileThing.should.equal('bar');
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
// exports pass through
|
|
180
|
-
|
|
181
|
-
await mochaIt("beforeEachFile exports are passed through to afterEachFile", async function () {
|
|
182
|
-
// don't try to reload test, fails due to module caching
|
|
183
|
-
//const testFile = 'unitTesting/runTest/beforeAfter.test.js'
|
|
184
|
-
//const test = loadTestFile(defaultConfig, testFile)
|
|
185
|
-
|
|
186
|
-
let exports;
|
|
187
|
-
const ourConfig = {
|
|
188
|
-
beforeEachFile: [async function () {
|
|
189
|
-
return {
|
|
190
|
-
functionThing: 'foo'
|
|
191
|
-
};
|
|
192
|
-
}, 'unitTesting/runTest/beforeEachExport.js'],
|
|
193
|
-
afterEachFile: [async function (theExports) {
|
|
194
|
-
await theExports.should.have.keys(['functionThing', 'fileThing']);
|
|
195
|
-
exports = theExports;
|
|
196
|
-
}]
|
|
197
|
-
};
|
|
198
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
199
|
-
await runTest(config, beforeAfterTest);
|
|
200
|
-
await exports.functionThing.should.equal('foo');
|
|
201
|
-
await exports.fileThing.should.equal('bar');
|
|
202
|
-
});
|
|
203
|
-
await mochaIt("beforeEachDescribe exports are passed through to afterEachDescribe", async function () {
|
|
204
|
-
// don't try to reload test, fails due to module caching
|
|
205
|
-
//const testFile = 'unitTesting/runTest/beforeAfter.test.js'
|
|
206
|
-
//const test = loadTestFile(defaultConfig, testFile)
|
|
207
|
-
|
|
208
|
-
let exports;
|
|
209
|
-
const ourConfig = {
|
|
210
|
-
beforeEachDescribe: [async function () {
|
|
211
|
-
return {
|
|
212
|
-
functionThing: 'foo'
|
|
213
|
-
};
|
|
214
|
-
}, 'unitTesting/runTest/beforeEachExport.js'],
|
|
215
|
-
afterEachDescribe: [async function (theExports) {
|
|
216
|
-
exports = theExports;
|
|
217
|
-
}]
|
|
218
|
-
};
|
|
219
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
220
|
-
await runTest(config, beforeAfterTest);
|
|
221
|
-
|
|
222
|
-
//console.log('exports', exports)
|
|
223
|
-
|
|
224
|
-
await exports.functionThing.should.equal('foo');
|
|
225
|
-
await exports.fileThing.should.equal('bar');
|
|
226
|
-
});
|
|
227
|
-
await mochaIt("beforeEachTest exports are passed through to afterEachTest", async function () {
|
|
228
|
-
// don't try to reload test, fails due to module caching
|
|
229
|
-
//const testFile = 'unitTesting/runTest/beforeAfter.test.js'
|
|
230
|
-
//const test = loadTestFile(defaultConfig, testFile)
|
|
231
|
-
|
|
232
|
-
let exports;
|
|
233
|
-
const ourConfig = {
|
|
234
|
-
beforeEachTest: [async function () {
|
|
235
|
-
return {
|
|
236
|
-
functionThing: 'foo'
|
|
237
|
-
};
|
|
238
|
-
}, 'unitTesting/runTest/beforeEachExport.js'],
|
|
239
|
-
afterEachTest: [async function (theExports) {
|
|
240
|
-
exports = theExports;
|
|
241
|
-
}]
|
|
242
|
-
};
|
|
243
|
-
const config = await applyConfigDefaults(ourConfig);
|
|
244
|
-
await runTest(config, beforeAfterTest);
|
|
245
|
-
|
|
246
|
-
//console.log('exports', exports)
|
|
247
|
-
|
|
248
|
-
await exports.functionThing.should.equal('foo');
|
|
249
|
-
await exports.fileThing.should.equal('bar');
|
|
250
|
-
});
|
|
251
|
-
await mochaIt("we can run code beforeEachTest and afterEachTest from within the test file", async function () {
|
|
252
|
-
// don't try to reload test, fails due to module caching
|
|
253
|
-
const testFile = 'unitTesting/runTest/internalBeforeAfterEachTest.test.js';
|
|
254
|
-
const test = await loadTestFile(defaultConfig, testFile);
|
|
255
|
-
const config = await applyConfigDefaults({});
|
|
256
|
-
global.internalBeforeEachTestRanNTimes = 0;
|
|
257
|
-
global.internalAfterEachTestRanNTimes = 0;
|
|
258
|
-
await runTest(config, test);
|
|
259
|
-
await global.internalBeforeAfterEachTest_test1Valid.should.equal(true);
|
|
260
|
-
await global.internalBeforeAfterEachTest_test2Valid.should.equal(true);
|
|
261
|
-
await global.internalBeforeAfterEachTest_test3Valid.should.equal(true);
|
|
262
|
-
await global.internalBeforeEachTestRanNTimes.should.equal(3);
|
|
263
|
-
await global.internalAfterEachTestRanNTimes.should.equal(3);
|
|
264
|
-
});
|
|
265
|
-
await mochaIt("we can run code afterDescribe from within descibe in the test file", async function () {
|
|
266
|
-
// don't try to reload test, fails due to module caching
|
|
267
|
-
const testFile = 'unitTesting/runTest/internalAfterDescribeTest.test.js';
|
|
268
|
-
const test = await loadTestFile(defaultConfig, testFile);
|
|
269
|
-
const config = await applyConfigDefaults({});
|
|
270
|
-
global.internalAfterDescribeRanNTimes = 0;
|
|
271
|
-
await runTest(config, test);
|
|
272
|
-
|
|
273
|
-
//global.internalAfterDescribe_test1Valid.should.equal(true)
|
|
274
|
-
//global.internalAfterDescribe_test2Valid.should.equal(true)
|
|
275
|
-
await global.internalAfterDescribeRanNTimes.should.equal(2);
|
|
276
|
-
});
|
|
277
|
-
await mochaIt('should capture and returns logs from the test when using sequential execution', async function () {
|
|
278
|
-
const config = await applyConfigDefaults({
|
|
279
|
-
execution: {
|
|
280
|
-
files: 'sequential',
|
|
281
|
-
describes: 'sequential',
|
|
282
|
-
tests: 'sequential'
|
|
283
|
-
}
|
|
7
|
+
mochaDescribe('runTest() function', function () {
|
|
8
|
+
mochaIt('should run a test that was previously loaded from a test file', async function () {
|
|
9
|
+
const sampleTestFile = 'unitTesting/runTest/1.test.js';
|
|
10
|
+
const sampleTest = await loadTestFile(defaultConfig, sampleTestFile);
|
|
11
|
+
const testResult = await runTest(defaultConfig, sampleTest);
|
|
12
|
+
testResult.should.include.keys([
|
|
13
|
+
'file',
|
|
14
|
+
'success',
|
|
15
|
+
'describeResults',
|
|
16
|
+
'describeResultsSummary'
|
|
17
|
+
]);
|
|
18
|
+
chaiExpect(testResult.success).to.equal(true);
|
|
19
|
+
testResult.describeResultsSummary.total.should.equal(1);
|
|
20
|
+
testResult.describeResultsSummary.passes.should.equal(1);
|
|
21
|
+
testResult.describeResultsSummary.itsTotal.should.equal(1);
|
|
22
|
+
testResult.describeResultsSummary.itsPasses.should.equal(1);
|
|
284
23
|
});
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
24
|
+
mochaIt('should return sensible results from a test file without any describes', async function () {
|
|
25
|
+
const sampleTestFile = 'unitTesting/sampletests/blank.test.js';
|
|
26
|
+
const sampleTest = await loadTestFile(defaultConfig, sampleTestFile);
|
|
27
|
+
const testResult = await runTest(defaultConfig, sampleTest);
|
|
28
|
+
testResult.should.include.keys([
|
|
29
|
+
'file',
|
|
30
|
+
'success',
|
|
31
|
+
'describeResults',
|
|
32
|
+
'describeResultsSummary'
|
|
33
|
+
]);
|
|
34
|
+
chaiExpect(testResult.success).to.be.null;
|
|
35
|
+
});
|
|
36
|
+
mochaIt('should return sensible results from a test file with describes without any its/tests', async function () {
|
|
37
|
+
const sampleTestFile = 'unitTesting/sampletests/describesWithoutTests.test.js';
|
|
38
|
+
const sampleTest = await loadTestFile(defaultConfig, sampleTestFile);
|
|
39
|
+
const testResult = await runTest(defaultConfig, sampleTest);
|
|
40
|
+
testResult.should.include.keys([
|
|
41
|
+
'file',
|
|
42
|
+
'success',
|
|
43
|
+
'describeResults',
|
|
44
|
+
'describeResultsSummary'
|
|
45
|
+
]);
|
|
46
|
+
chaiExpect(testResult.success).to.be.null;
|
|
47
|
+
testResult.describeResultsSummary.total.should.equal(0);
|
|
48
|
+
testResult.describeResultsSummary.passes.should.equal(0);
|
|
49
|
+
testResult.describeResultsSummary.invalid.should.equal(2);
|
|
50
|
+
testResult.describeResultsSummary.itsTotal.should.equal(0);
|
|
51
|
+
testResult.describeResultsSummary.itsPasses.should.equal(0);
|
|
52
|
+
});
|
|
53
|
+
mochaIt('should run beforeEachFile tasks (before - can\'t test)', async function () {
|
|
54
|
+
let functionHasRun = false;
|
|
55
|
+
global.beforeEachFileFileHasRun = false;
|
|
56
|
+
const config = applyConfigDefaults({
|
|
57
|
+
beforeEachFile: [
|
|
58
|
+
function () {
|
|
59
|
+
functionHasRun = true;
|
|
60
|
+
},
|
|
61
|
+
'unitTesting/runTest/beforeEachFile.js'
|
|
62
|
+
]
|
|
63
|
+
});
|
|
64
|
+
await runTest(config, beforeAfterTest);
|
|
65
|
+
functionHasRun.should.equal(true);
|
|
66
|
+
global.beforeEachFileFileHasRun.should.equal(true);
|
|
67
|
+
});
|
|
68
|
+
mochaIt('should run afterEachFile tasks (after - can\'t test)', async function () {
|
|
69
|
+
let functionHasRun = false;
|
|
70
|
+
global.afterEachFileFileHasRun = false;
|
|
71
|
+
const config = applyConfigDefaults({
|
|
72
|
+
afterEachFile: [
|
|
73
|
+
function () {
|
|
74
|
+
functionHasRun = true;
|
|
75
|
+
},
|
|
76
|
+
'unitTesting/runTest/afterEachFile.js'
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
await runTest(config, beforeAfterTest);
|
|
80
|
+
functionHasRun.should.equal(true);
|
|
81
|
+
global.afterEachFileFileHasRun.should.equal(true);
|
|
82
|
+
});
|
|
83
|
+
mochaIt('should run beforeEachDescribe tasks (before - can\'t test) each describe block', async function () {
|
|
84
|
+
let functionHasRunTimes = 0;
|
|
85
|
+
global.beforeEachDescribeFileHasRun = false;
|
|
86
|
+
const config = applyConfigDefaults({
|
|
87
|
+
beforeEachDescribe: [
|
|
88
|
+
function () {
|
|
89
|
+
functionHasRunTimes++;
|
|
90
|
+
},
|
|
91
|
+
'unitTesting/runTest/beforeEachDescribe.js'
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
await runTest(config, beforeAfterTest);
|
|
95
|
+
functionHasRunTimes.should.equal(2);
|
|
96
|
+
global.beforeEachDescribeFileHasRun.should.equal(true);
|
|
97
|
+
});
|
|
98
|
+
mochaIt('should run afterEachDescribe tasks (after - can\'t test) each describe block', async function () {
|
|
99
|
+
let functionHasRunTimes = 0;
|
|
100
|
+
global.afterEachDescribeFileHasRun = false;
|
|
101
|
+
const config = applyConfigDefaults({
|
|
102
|
+
afterEachDescribe: [
|
|
103
|
+
function () {
|
|
104
|
+
functionHasRunTimes++;
|
|
105
|
+
},
|
|
106
|
+
'unitTesting/runTest/afterEachDescribe.js'
|
|
107
|
+
]
|
|
108
|
+
});
|
|
109
|
+
await runTest(config, beforeAfterTest);
|
|
110
|
+
functionHasRunTimes.should.equal(2);
|
|
111
|
+
global.afterEachDescribeFileHasRun.should.equal(true);
|
|
112
|
+
});
|
|
113
|
+
mochaIt('should run beforeEachTest tasks (before - can\'t test) each test/it block', async function () {
|
|
114
|
+
let functionHasRunTimes = 0;
|
|
115
|
+
global.beforeEachTestbeforeEachFileFileHasRun = false;
|
|
116
|
+
const config = applyConfigDefaults({
|
|
117
|
+
beforeEachTest: [
|
|
118
|
+
function () {
|
|
119
|
+
functionHasRunTimes++;
|
|
120
|
+
},
|
|
121
|
+
'unitTesting/runTest/beforeEachTest.js'
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
await runTest(config, beforeAfterTest);
|
|
125
|
+
functionHasRunTimes.should.equal(3);
|
|
126
|
+
global.beforeEachTestFileHasRun.should.equal(true);
|
|
127
|
+
});
|
|
128
|
+
mochaIt('should run afterEachTest tasks (after - can\'t test) each test/it block', async function () {
|
|
129
|
+
let functionHasRunTimes = 0;
|
|
130
|
+
global.afterEachTestFileFileHasRun = false;
|
|
131
|
+
const config = applyConfigDefaults({
|
|
132
|
+
afterEachTest: [
|
|
133
|
+
function () {
|
|
134
|
+
functionHasRunTimes++;
|
|
135
|
+
},
|
|
136
|
+
'unitTesting/runTest/afterEachTest.js'
|
|
137
|
+
]
|
|
138
|
+
});
|
|
139
|
+
await runTest(config, beforeAfterTest);
|
|
140
|
+
functionHasRunTimes.should.equal(3);
|
|
141
|
+
global.afterEachTestFileHasRun.should.equal(true);
|
|
142
|
+
});
|
|
143
|
+
// exports provision to test file
|
|
144
|
+
// current beforeEachFile exports aren't provided
|
|
145
|
+
// perhaps extend sxy-loader to allow this
|
|
146
|
+
mochaIt('should pass exported/returned data from beforeEachDescribe tasks', async function () {
|
|
147
|
+
const testFile = 'unitTesting/runTest/beforeEachDescribe.test.js';
|
|
148
|
+
const test = await loadTestFile(defaultConfig, testFile);
|
|
149
|
+
const config = applyConfigDefaults({
|
|
150
|
+
beforeEachDescribe: [
|
|
151
|
+
function () {
|
|
152
|
+
return { functionThing: 'foo' };
|
|
153
|
+
},
|
|
154
|
+
'unitTesting/runTest/beforeEachDescribeExport.js'
|
|
155
|
+
]
|
|
156
|
+
});
|
|
157
|
+
await runTest(config, test);
|
|
158
|
+
global.functionThing.should.equal('foo');
|
|
159
|
+
global.fileThing.should.equal('bar');
|
|
160
|
+
});
|
|
161
|
+
mochaIt('should pass exported/returned data from beforeEachTest tasks', async function () {
|
|
162
|
+
const testFile = 'unitTesting/runTest/beforeEachTest.test.js';
|
|
163
|
+
const test = await loadTestFile(defaultConfig, testFile);
|
|
164
|
+
const config = applyConfigDefaults({
|
|
165
|
+
beforeEachTest: [
|
|
166
|
+
function () {
|
|
167
|
+
return { functionThing: 'foo' };
|
|
168
|
+
},
|
|
169
|
+
'unitTesting/runTest/beforeEachTestExport.js'
|
|
170
|
+
]
|
|
171
|
+
});
|
|
172
|
+
await runTest(config, test);
|
|
173
|
+
global.functionThing.should.equal('foo');
|
|
174
|
+
global.fileThing.should.equal('bar');
|
|
175
|
+
});
|
|
176
|
+
// exports pass through
|
|
177
|
+
mochaIt('beforeEachFile exports are passed through to afterEachFile', async function () {
|
|
178
|
+
// don't try to reload test, fails due to module caching
|
|
179
|
+
let exports = {};
|
|
180
|
+
const config = applyConfigDefaults({
|
|
181
|
+
beforeEachFile: [
|
|
182
|
+
function () {
|
|
183
|
+
return { functionThing: 'foo' };
|
|
184
|
+
},
|
|
185
|
+
'unitTesting/runTest/beforeEachExport.js'
|
|
186
|
+
],
|
|
187
|
+
afterEachFile: [
|
|
188
|
+
function (theExports) {
|
|
189
|
+
if (!theExports)
|
|
190
|
+
throw new Error('expected exports');
|
|
191
|
+
theExports.should.have.keys(['functionThing', 'fileThing']);
|
|
192
|
+
exports = theExports;
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
});
|
|
196
|
+
await runTest(config, beforeAfterTest);
|
|
197
|
+
exports.functionThing?.should.equal('foo');
|
|
198
|
+
exports.fileThing?.should.equal('bar');
|
|
199
|
+
});
|
|
200
|
+
mochaIt('beforeEachDescribe exports are passed through to afterEachDescribe', async function () {
|
|
201
|
+
// don't try to reload test, fails due to module caching
|
|
202
|
+
let exports = {};
|
|
203
|
+
const config = applyConfigDefaults({
|
|
204
|
+
beforeEachDescribe: [
|
|
205
|
+
function () {
|
|
206
|
+
return { functionThing: 'foo' };
|
|
207
|
+
},
|
|
208
|
+
'unitTesting/runTest/beforeEachExport.js'
|
|
209
|
+
],
|
|
210
|
+
afterEachDescribe: [
|
|
211
|
+
function (theExports) {
|
|
212
|
+
if (theExports)
|
|
213
|
+
exports = theExports;
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
});
|
|
217
|
+
await runTest(config, beforeAfterTest);
|
|
218
|
+
exports.functionThing?.should.equal('foo');
|
|
219
|
+
exports.fileThing?.should.equal('bar');
|
|
220
|
+
});
|
|
221
|
+
mochaIt('beforeEachTest exports are passed through to afterEachTest', async function () {
|
|
222
|
+
// don't try to reload test, fails due to module caching
|
|
223
|
+
let exports = {};
|
|
224
|
+
const config = applyConfigDefaults({
|
|
225
|
+
beforeEachTest: [
|
|
226
|
+
function () {
|
|
227
|
+
return { functionThing: 'foo' };
|
|
228
|
+
},
|
|
229
|
+
'unitTesting/runTest/beforeEachExport.js'
|
|
230
|
+
],
|
|
231
|
+
afterEachTest: [
|
|
232
|
+
function (theExports) {
|
|
233
|
+
if (theExports)
|
|
234
|
+
exports = theExports;
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
});
|
|
238
|
+
await runTest(config, beforeAfterTest);
|
|
239
|
+
exports.functionThing?.should.equal('foo');
|
|
240
|
+
exports.fileThing?.should.equal('bar');
|
|
241
|
+
});
|
|
242
|
+
mochaIt('we can run code beforeEachTest and afterEachTest from within the test file', async function () {
|
|
243
|
+
// don't try to reload test, fails due to module caching
|
|
244
|
+
const testFile = 'unitTesting/runTest/internalBeforeAfterEachTest.test.js';
|
|
245
|
+
const test = await loadTestFile(defaultConfig, testFile);
|
|
246
|
+
const config = applyConfigDefaults({});
|
|
247
|
+
global.internalBeforeEachTestRanNTimes = 0;
|
|
248
|
+
global.internalAfterEachTestRanNTimes = 0;
|
|
249
|
+
await runTest(config, test);
|
|
250
|
+
global.internalBeforeAfterEachTest_test1Valid.should.equal(true);
|
|
251
|
+
global.internalBeforeAfterEachTest_test2Valid.should.equal(true);
|
|
252
|
+
global.internalBeforeAfterEachTest_test3Valid.should.equal(true);
|
|
253
|
+
global.internalBeforeEachTestRanNTimes.should.equal(3);
|
|
254
|
+
global.internalAfterEachTestRanNTimes.should.equal(3);
|
|
255
|
+
});
|
|
256
|
+
mochaIt('we can run code afterDescribe from within descibe in the test file', async function () {
|
|
257
|
+
// don't try to reload test, fails due to module caching
|
|
258
|
+
const testFile = 'unitTesting/runTest/internalAfterDescribeTest.test.js';
|
|
259
|
+
const test = await loadTestFile(defaultConfig, testFile);
|
|
260
|
+
const config = applyConfigDefaults({});
|
|
261
|
+
global.internalAfterDescribeRanNTimes = 0;
|
|
262
|
+
await runTest(config, test);
|
|
263
|
+
global.internalAfterDescribeRanNTimes.should.equal(2);
|
|
264
|
+
});
|
|
265
|
+
mochaIt('should capture and returns logs from the test when using sequential execution', async function () {
|
|
266
|
+
const config = applyConfigDefaults({
|
|
267
|
+
execution: {
|
|
268
|
+
files: 'sequential',
|
|
269
|
+
describes: 'sequential',
|
|
270
|
+
tests: 'sequential'
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
const sampleTestFile = 'unitTesting/sampleTests/logging.test.js';
|
|
274
|
+
const sampleTest = await loadTestFile(config, sampleTestFile);
|
|
275
|
+
const testResult = await runTest(config, sampleTest);
|
|
276
|
+
testResult.describeResults[0]?.logs?.length.should.equal(1);
|
|
277
|
+
testResult.describeResults[0]?.itResults[0]?.logs.length.should.equal(1);
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
//# sourceMappingURL=runTest.unitTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runTest.unitTest.js","sourceRoot":"","sources":["../../../src/cli/lib/runTest.unitTest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,m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