Skip to content

Commit

Permalink
fix: unit tests: command
Browse files Browse the repository at this point in the history
  • Loading branch information
ngduc committed Feb 26, 2021
1 parent 5a75559 commit e135aec
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [0.14.5] - 2021-02-25
- updated peerDependencies for React 17 - thanks @ApacheEx

## [0.14.4] - 2021-01-15
- dev: upgraded dependencies.
- upgraded tabulator-tables to 4.9.3
Expand Down
6 changes: 5 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ To upgrade tabulator:
- run ```$ yarn build```
- update CHANGELOG
- commit & push & npm publish
- github: create a release (tag)
- github: create a release (tag)

### Unit tests

Sometimes when running unit tests, it fails to launch the puppeteer server (see: jest-puppeteer.config.js), you may want to kill all node processes and run the tests again.
6 changes: 4 additions & 2 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ try {
execSync('curl http://localhost:3003')
.toString()
.indexOf('Failed to connect') < 0;
} catch (e) {}
} catch (e) {
console.log('ERROR: ', e)
}

// if UI is not up => start UI
const server = !isServerUp
Expand All @@ -16,7 +18,7 @@ const server = !isServerUp
port: 3003,
launchTimeout: 9000,
}
: { command: '' };
: { command: 'echo -' };

module.exports = {
server,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tabulator",
"version": "0.14.4",
"version": "0.14.5",
"description": "React Tabulator is based on tabulator - a JS table library with many advanced features.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit e135aec

Please sign in to comment.