@awsless/awsless 0.0.111 → 0.0.112
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/bin.js +16 -12
- package/dist/features/cognito-client-secret/bundle.zip +0 -0
- package/dist/features/delete-bucket/bundle.zip +0 -0
- package/dist/features/delete-hosted-zone/bundle.zip +0 -0
- package/dist/features/global-exports/bundle.zip +0 -0
- package/dist/features/invalidate-cache/bundle.zip +0 -0
- package/dist/features/upload-bucket-asset/bundle.zip +0 -0
- package/package.json +6 -6
package/dist/bin.js
CHANGED
|
@@ -8391,16 +8391,19 @@ var CustomReporter = class {
|
|
|
8391
8391
|
return [task];
|
|
8392
8392
|
}
|
|
8393
8393
|
};
|
|
8394
|
-
var singleTester = (stack, dir) => {
|
|
8394
|
+
var singleTester = (stack, dir, filters) => {
|
|
8395
8395
|
const formatFileName = (path) => {
|
|
8396
8396
|
if (!path) {
|
|
8397
8397
|
return "";
|
|
8398
8398
|
}
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
const ext = extname2(
|
|
8402
|
-
|
|
8403
|
-
|
|
8399
|
+
const abs = join11(process.cwd(), path);
|
|
8400
|
+
const rel = relative4(dir, abs);
|
|
8401
|
+
const ext = extname2(rel);
|
|
8402
|
+
if (!ext) {
|
|
8403
|
+
return path;
|
|
8404
|
+
}
|
|
8405
|
+
const name = basename3(rel, ext);
|
|
8406
|
+
const base = dirname6(rel);
|
|
8404
8407
|
const start = base === "." ? "" : style.placeholder(base + "/");
|
|
8405
8408
|
return `${start}${name}${style.placeholder(ext)}`;
|
|
8406
8409
|
};
|
|
@@ -8550,7 +8553,7 @@ var singleTester = (stack, dir) => {
|
|
|
8550
8553
|
});
|
|
8551
8554
|
const result = await startVitest(
|
|
8552
8555
|
"test",
|
|
8553
|
-
|
|
8556
|
+
filters,
|
|
8554
8557
|
{
|
|
8555
8558
|
// name: config.name,
|
|
8556
8559
|
watch: false,
|
|
@@ -8587,11 +8590,11 @@ var singleTester = (stack, dir) => {
|
|
|
8587
8590
|
return result?.state.getCountOfFailedTests() === 0;
|
|
8588
8591
|
};
|
|
8589
8592
|
};
|
|
8590
|
-
var runTester = (tests) => {
|
|
8593
|
+
var runTester = (tests, filters = []) => {
|
|
8591
8594
|
return async (term) => {
|
|
8592
8595
|
for (const [name, paths] of tests.entries()) {
|
|
8593
8596
|
for (const path of paths) {
|
|
8594
|
-
const result = await term.out.write(singleTester(name, path));
|
|
8597
|
+
const result = await term.out.write(singleTester(name, path, filters));
|
|
8595
8598
|
if (!result) {
|
|
8596
8599
|
return false;
|
|
8597
8600
|
}
|
|
@@ -8808,14 +8811,15 @@ var config = (program2) => {
|
|
|
8808
8811
|
|
|
8809
8812
|
// src/cli/command/test.ts
|
|
8810
8813
|
var test = (program2) => {
|
|
8811
|
-
program2.command("test").argument("[stacks...]", "Optionally filter stacks to test").description("Test your app").action(async (
|
|
8814
|
+
program2.command("test").argument("[stacks...]", "Optionally filter stacks to test").option("-f --filters <string...>", "Optionally filter test files").description("Test your app").action(async (stacks, options) => {
|
|
8812
8815
|
await layout(async (config2, write) => {
|
|
8813
|
-
const { tests } = await toApp(config2,
|
|
8816
|
+
const { tests } = await toApp(config2, stacks);
|
|
8817
|
+
debug(stacks, options);
|
|
8814
8818
|
if (tests.size === 0) {
|
|
8815
8819
|
write(dialog("warning", ["No tests found"]));
|
|
8816
8820
|
return;
|
|
8817
8821
|
}
|
|
8818
|
-
await write(runTester(tests));
|
|
8822
|
+
await write(runTester(tests, options?.filters));
|
|
8819
8823
|
});
|
|
8820
8824
|
});
|
|
8821
8825
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.112",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@awsless/redis": "^0.0.8",
|
|
28
|
-
"@awsless/lambda": "^0.0.
|
|
29
|
-
"@awsless/sns": "^0.0.7",
|
|
28
|
+
"@awsless/lambda": "^0.0.14",
|
|
30
29
|
"@awsless/sqs": "^0.0.7",
|
|
31
|
-
"@awsless/
|
|
32
|
-
"@awsless/
|
|
33
|
-
"@awsless/weak-cache": "^0.0.1"
|
|
30
|
+
"@awsless/validate": "^0.0.10",
|
|
31
|
+
"@awsless/sns": "^0.0.7",
|
|
32
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
33
|
+
"@awsless/ssm": "^0.0.7"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@aws-appsync/utils": "^1.5.0",
|