@rstest/core 0.6.8 → 0.6.9
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/0~122.js +1 -1
- package/dist/155.js +3 -3
- package/dist/362.js +1 -5
- package/package.json +1 -1
package/dist/0~122.js
CHANGED
|
@@ -477,7 +477,7 @@ const autoExternalNodeModules = ({ context, request, dependencyType, getResolve
|
|
|
477
477
|
if (!resolver) return callback();
|
|
478
478
|
resolver(context, request, (err, resolvePath)=>{
|
|
479
479
|
if (err) return callback();
|
|
480
|
-
if (resolvePath &&
|
|
480
|
+
if (resolvePath && resolvePath.includes('node_modules') && !/\.(?:ts|tsx|jsx|mts|cts)$/.test(resolvePath)) return doExternal(resolvePath);
|
|
481
481
|
return callback();
|
|
482
482
|
});
|
|
483
483
|
};
|
package/dist/155.js
CHANGED
|
@@ -500,7 +500,7 @@ function prepareCli() {
|
|
|
500
500
|
if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) console.log();
|
|
501
501
|
}
|
|
502
502
|
function showRstest() {
|
|
503
|
-
src_logger.greet(" Rstest v0.6.
|
|
503
|
+
src_logger.greet(" Rstest v0.6.9");
|
|
504
504
|
src_logger.log('');
|
|
505
505
|
}
|
|
506
506
|
const applyCommonOptions = (cli)=>{
|
|
@@ -544,7 +544,7 @@ const runRest = async ({ options, filters, command })=>{
|
|
|
544
544
|
function setupCommands() {
|
|
545
545
|
const cli = dist('rstest');
|
|
546
546
|
cli.help();
|
|
547
|
-
cli.version("0.6.
|
|
547
|
+
cli.version("0.6.9");
|
|
548
548
|
applyCommonOptions(cli);
|
|
549
549
|
cli.command('[...filters]', 'run tests').option('-w, --watch', 'Run tests in watch mode').action(async (filters, options)=>{
|
|
550
550
|
showRstest();
|
|
@@ -2427,7 +2427,7 @@ class Rstest {
|
|
|
2427
2427
|
});
|
|
2428
2428
|
this.reporters = reporters;
|
|
2429
2429
|
this.snapshotManager = snapshotManager;
|
|
2430
|
-
this.version = "0.6.
|
|
2430
|
+
this.version = "0.6.9";
|
|
2431
2431
|
this.rootPath = rootPath;
|
|
2432
2432
|
this.originalConfig = userConfig;
|
|
2433
2433
|
this.normalizedConfig = rstestConfig;
|
package/dist/362.js
CHANGED
|
@@ -6656,7 +6656,7 @@ const formatTestError = (err, test)=>{
|
|
|
6656
6656
|
message: rawError
|
|
6657
6657
|
} : rawError;
|
|
6658
6658
|
const errObj = {
|
|
6659
|
-
|
|
6659
|
+
fullStack: error.fullStack,
|
|
6660
6660
|
message: error.message,
|
|
6661
6661
|
name: error.name,
|
|
6662
6662
|
stack: error.stack
|
|
@@ -6665,10 +6665,6 @@ const formatTestError = (err, test)=>{
|
|
|
6665
6665
|
if (error.showDiff || void 0 === error.showDiff && void 0 !== error.expected && void 0 !== error.actual) errObj.diff = diff(err.expected, err.actual, {
|
|
6666
6666
|
expand: false
|
|
6667
6667
|
});
|
|
6668
|
-
for (const key of [
|
|
6669
|
-
'actual',
|
|
6670
|
-
'expected'
|
|
6671
|
-
])if ('string' != typeof err[key]) errObj[key] = JSON.stringify(err[key], null, 10);
|
|
6672
6668
|
return errObj;
|
|
6673
6669
|
});
|
|
6674
6670
|
};
|