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:
2023-05-13 22:54:22 +02:00
parent 8c446eeb4b
commit ac38241629
5 changed files with 51 additions and 5 deletions

View File

@@ -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",

View File

@@ -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')));
});