Fixes plusieurs problèmes pour checker le theme.json généré.
Introduit aussi un launch.json pour mes réinstallations futures de VScode. Supprime la description.md qui fait échouter ce test prévu pour réussir.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"main": "wpp_checker.js",
|
||||
"scripts": {
|
||||
"test": "mocha wpp_checker.js --require mocha-steps --colors"
|
||||
"test": "src/test_manifest_job/node_modules/mocha/bin/_mocha --require mocha-steps --colors src/test_manifest_job/wpp_checker.js"
|
||||
},
|
||||
"author": "Simon",
|
||||
"license": "ISC",
|
||||
|
@@ -42,7 +42,7 @@ describe('Mandatory Checks', function () {
|
||||
const root = process.env["ENTRY_FOLDER"];
|
||||
expect(root).to.be.a("string").that.is.not.empty;
|
||||
workingDirectory = path.join(root, slug);
|
||||
const files = fs.readdirSync(workingDirectory);
|
||||
files = fs.readdirSync(workingDirectory);
|
||||
expect(files).to.be.an('array').that.is.not.empty;
|
||||
validator = ajv.compile(JSON.parse(fs.readFileSync(themeSchemaFile, 'utf8')));
|
||||
});
|
||||
|
Reference in New Issue
Block a user