We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ff308 commit 4415f9dCopy full SHA for 4415f9d
test/dev.js
@@ -1,3 +1,4 @@
1
+const fs = require('fs');
2
const path = require('path');
3
const babelConfig = require('../babel.config');
4
@@ -15,6 +16,12 @@ require('@babel/register')({
15
16
const [testSuiteDir] = process.argv.slice(2);
17
18
const configPath = path.resolve(__dirname, testSuiteDir, 'config.ts');
19
+
20
+if (!fs.existsSync(configPath)) {
21
+ console.error('ERROR: You must pass a valid directory under test/ that contains a config.ts');
22
+ process.exit(1);
23
+}
24
25
process.env.PAYLOAD_CONFIG_PATH = configPath;
26
process.env.PAYLOAD_DROP_DATABASE = 'true';
27
0 commit comments