feat(tapbundle,deno): replace smarts3 test tooling with smartstorage and pre-resolve Deno test dependencies
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@git.zone/tstest',
|
||||
version: '3.3.2',
|
||||
version: '3.4.0',
|
||||
description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
|
||||
}
|
||||
|
||||
@@ -190,6 +190,17 @@ import '${absoluteTestFile.replace(/\\/g, '/')}';
|
||||
runCommand = `${loaderCommand.command} ${loaderCommand.args.join(' ')}`;
|
||||
}
|
||||
|
||||
// Pre-resolve dependencies for the Deno test entrypoint
|
||||
const installTarget = loaderPath || testFile;
|
||||
const installArgs = ['install', '--entrypoint', installTarget];
|
||||
if (mergedOptions.configPath) {
|
||||
installArgs.push('--config', mergedOptions.configPath);
|
||||
}
|
||||
const installCommand = `deno ${installArgs.join(' ')}`;
|
||||
console.log(cs(` ⏳ Resolving Deno dependencies for ${plugins.path.basename(testFile)}...`, 'blue'));
|
||||
await this.smartshellInstance.execSilent(installCommand, { cwd: process.cwd() });
|
||||
console.log(cs(` ✓ Deno dependencies resolved`, 'green'));
|
||||
|
||||
const execResultStreaming = await this.smartshellInstance.execStreamingSilent(runCommand);
|
||||
|
||||
// If we created a loader file, clean it up after test execution
|
||||
|
||||
Reference in New Issue
Block a user