Skip to content

Commit

Permalink
release 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosOrozco88 committed Apr 4, 2023
1 parent b6d8f68 commit e5fec3d
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 594 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.6 (04-04-2023)
- Dependencies upgrade
- Bootstrap testing upgraded

## 0.0.5 (04-01-2023)
- Dependencies upgrade
- Icon changed
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "icon-font-bundler",
"displayName": "Icon Font Bundler",
"description": "Bundle your multiple svg into a single icon font and more",
"version": "0.0.5",
"version": "0.0.6",
"publisher": "carlosorozcojimenez",
"author": "Carlos Orozco Jiménez <carlos.orozco.jimenez@gmail.com>",
"contributors": [
Expand Down Expand Up @@ -81,31 +81,31 @@
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@babel/core": "7.20.7",
"@babel/preset-env": "7.20.2",
"@types/glob": "8.0.0",
"@babel/core": "7.21.4",
"@babel/preset-env": "7.21.4",
"@types/glob": "8.1.0",
"@types/mocha": "10.0.1",
"@types/node": "16.11.7",
"@types/svg2ttf": "5.0.1",
"@types/svgicons2svgfont": "10.0.1",
"@types/ttf2woff": "2.0.2",
"@types/vscode": "1.74.0",
"@typescript-eslint/eslint-plugin": "5.48.0",
"@typescript-eslint/parser": "5.48.0",
"@vscode/test-electron": "2.2.1",
"babel-loader": "9.1.0",
"@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.57.1",
"@vscode/test-electron": "2.3.0",
"babel-loader": "9.1.2",
"clean-webpack-plugin": "4.0.0",
"copy-webpack-plugin": "11.0.0",
"eslint": "8.31.0",
"eslint-config-prettier": "8.6.0",
"eslint": "8.37.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-prettier": "4.2.1",
"glob": "8.0.3",
"glob": "9.3.4",
"mocha": "10.2.0",
"prettier": "2.8.1",
"prettier": "2.8.7",
"ts-loader": "9.4.2",
"webpack": "5.75.0",
"webpack": "5.77.0",
"webpack-cli": "5.0.1",
"typescript": "4.9.4"
"typescript": "5.0.3"
},
"dependencies": {
"fantasticon": "2.0.0",
Expand Down
38 changes: 17 additions & 21 deletions src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,24 @@ export function run(): Promise<void> {

const testsRoot = path.resolve(__dirname, '..');

return new Promise((c, e) => {
glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
if (err) {
return e(err);
}
return new Promise(async (resolve, reject) => {
const files = await glob('**/**.test.js', { cwd: testsRoot });

// Add files to the test suite
files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));
// Add files to the test suite
files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));

try {
// Run the mocha test
mocha.run((failures) => {
if (failures > 0) {
e(new Error(`${failures} tests failed.`));
} else {
c();
}
});
} catch (err) {
console.error(err);
e(err);
}
});
try {
// Run the mocha test
mocha.run((failures) => {
if (failures > 0) {
reject(new Error(`${failures} tests failed.`));
} else {
resolve();
}
});
} catch (err) {
console.error(err);
reject(err);
}
});
}
Loading

0 comments on commit e5fec3d

Please sign in to comment.