@compas/cli
Advanced tools
Comparing version 0.10.5 to 0.10.6
{ | ||
"name": "@compas/cli", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"description": "CLI containing utilities and simple script runner", | ||
@@ -31,3 +31,3 @@ "exports": { | ||
"dependencies": { | ||
"@compas/stdlib": "0.10.5", | ||
"@compas/stdlib": "0.10.6", | ||
"c8": "9.1.0", | ||
@@ -34,0 +34,0 @@ "chokidar": "3.6.0", |
@@ -19,2 +19,3 @@ import { existsSync } from "node:fs"; | ||
const configPath = pathJoin(process.cwd(), "test/config.js"); | ||
const packageJsonPath = pathJoin(process.cwd(), "package.json"); | ||
@@ -151,2 +152,9 @@ /** | ||
resolvedConfig.teardown = config.teardown ?? noop; | ||
} else if (!existsSync(packageJsonPath)) { | ||
// If we can't resolve a test config, double check that the user executes the tests | ||
// from the project root. Always running tests from the project root has the least | ||
// surprises in the long run. | ||
throw new Error( | ||
`Make sure to start the tests from the project root, found '${process.cwd()}'. If you really need to run tests from this directory, create a 'package.json' in this directory.`, | ||
); | ||
} | ||
@@ -153,0 +161,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
262503
8329
+ Added@compas/stdlib@0.10.6(transitive)
- Removed@compas/stdlib@0.10.5(transitive)
Updated@compas/stdlib@0.10.6