Skip to content

Commit c7066a8

Browse files
committed
Added pushstate again
1 parent a05f5e5 commit c7066a8

File tree

3 files changed

+91
-4
lines changed

3 files changed

+91
-4
lines changed

integration/setup.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ const buildDemo = () =>
66
exec('npm run build:demo:test', undefined, resolve);
77
});
88

9-
module.exports = async jestConfig => {
10-
await buildDemo();
11-
await setupPuppeteer(jestConfig);
12-
};
9+
module.exports = jestConfig => Promise.all([buildDemo(), setupPuppeteer(jestConfig)]);

package-lock.json

+88
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}' --project tsconfig.json",
2929
"prepush": "npm run test & npm run build",
3030
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{ts,tsx}'",
31+
"serve:test": "pushstate-server -d integration/styleguide -p 6065",
3132
"start": "styleguidist server",
3233
"test": "npm run lint && npm run test:unit",
3334
"test:unit": "cross-env NODE_ENV=test jest",
@@ -90,6 +91,7 @@
9091
"material-design-icons": "^3.0.1",
9192
"prettier": "^1.15.3",
9293
"puppeteer": "^1.13.0",
94+
"pushstate-server": "^3.0.1",
9395
"react": "~16.8.0",
9496
"react-docgen-typescript": "^1.12.3",
9597
"react-dom": "^16.8.0",

0 commit comments

Comments
 (0)