Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| de48c2cca6 | |||
| 05f5876630 | |||
| d676cfdd1b | |||
| 98e2ad4589 | |||
| a65f852999 |
@ -13,7 +13,6 @@ script:
|
||||
- npm run linter
|
||||
- npm run packager
|
||||
- npm run tester
|
||||
- npm run test-with-coverage
|
||||
- npm run extractor
|
||||
- npm run vscoder
|
||||
- npm run glossary:keymaker
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "30-seconds-of-code",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
},
|
||||
"name": "30-seconds-of-code",
|
||||
"description": "A collection of useful JavaScript snippets.",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.2",
|
||||
"main": "dist/_30s.js",
|
||||
"module": "dist/_30s.esm.js",
|
||||
"scripts": {
|
||||
@ -35,12 +35,12 @@
|
||||
"vscoder": "node ./scripts/vscodegen.js",
|
||||
"packager": "node ./scripts/module.js",
|
||||
"localizer": "node ./scripts/localize.js",
|
||||
"test": "jest --verbose",
|
||||
"test": "jest --verbose --coverage",
|
||||
"test-with-coverage": "jest --coverage && cat ./coverage/lcov.info | codacy-coverage"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://30secondsofcode.org/"
|
||||
"url": "git+https://github.com/30-seconds/30-seconds-of-code.git"
|
||||
},
|
||||
"keywords": [
|
||||
"javascript",
|
||||
@ -52,6 +52,6 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/30-seconds/30-seconds-of-code/issues"
|
||||
},
|
||||
"homepage": "https://github.com/30-seconds/30-seconds-of-code#readme",
|
||||
"homepage": "https://30secondsofcode.org/",
|
||||
"dependencies": {}
|
||||
}
|
||||
|
||||
@ -41,8 +41,12 @@ try {
|
||||
fs.writeFileSync(path.join(TEST_PATH, `${snippet}.test.js`), exportTest);
|
||||
});
|
||||
// Run tests
|
||||
fs.writeFileSync(path.join(TEST_PATH, 'testlog'), `Test log for: ${new Date().toString()}\n`);
|
||||
childProcess.execSync('npm test');
|
||||
if (util.isTravisCI()) {
|
||||
childProcess.execSync('npm test-with-coverage');
|
||||
}
|
||||
else {
|
||||
childProcess.execSync('npm test');
|
||||
}
|
||||
console.log(`${chalk.green('SUCCESS!')} All tests ran successfully!`);
|
||||
} catch (err) {
|
||||
console.log(`${chalk.red('ERROR!')} During test runs: ${err}`);
|
||||
|
||||
Reference in New Issue
Block a user