Skip to content

Commit

Permalink
fix: debug cypress executor fail case
Browse files Browse the repository at this point in the history
  • Loading branch information
sampullman committed Mar 17, 2023
1 parent 0bbe266 commit 824a964
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
16 changes: 5 additions & 11 deletions packages/vue3-vite/generators.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
{
"$schema": "http://json-schema.org/schema",
"name": "nx-vue3-vite",
"version": "0.23.6",
"version": "0.23.7",
"generators": {
"vue3-vite": {
"factory": "./src/generators/vue3-vite/generator",
"schema": "./src/generators/vue3-vite/schema.json",
"description": "vue3-vite generator",
"aliases": [
"app"
]
"aliases": ["app"]
},
"library": {
"factory": "./src/generators/library/generator",
"schema": "./src/generators/library/schema.json",
"description": "vue3-vite library generator",
"aliases": [
"lib"
]
"aliases": ["lib"]
},
"component": {
"factory": "./src/generators/component/generator",
"schema": "./src/generators/component/schema.json",
"description": "component generator",
"aliases": [
"c"
]
"aliases": ["c"]
},
"docs": {
"factory": "./src/generators/docs/generator",
Expand All @@ -38,4 +32,4 @@
"description": "vue3-vite cypress generator"
}
}
}
}
4 changes: 2 additions & 2 deletions packages/vue3-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nx-vue3-vite",
"version": "0.23.6",
"version": "0.23.7",
"main": "src/index.js",
"generators": "./generators.json",
"executors": "./executors.json",
Expand All @@ -21,4 +21,4 @@
"vite",
"generator"
]
}
}
1 change: 1 addition & 0 deletions packages/vue3-vite/src/executors/cypress/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ async function runCypress(baseUrl: string, opts: CypressExecutorOptions) {
const success = result.status === 'finished';
const failures = success ? 0 : result.failures;
const message = success ? '' : `, ${result.message}`;
logger.info(JSON.stringify(result));
logger.info(
`Cypress completed with status: ${result.status}${message} failed=${failures}`
);
Expand Down

0 comments on commit 824a964

Please sign in to comment.