Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue where postcss plugins weren't being applied #513

Merged
merged 11 commits into from
May 26, 2023
Prev Previous commit
Next Next commit
Setup caching for npx to prevent test crashes
  • Loading branch information
stevenewald committed May 26, 2023
commit 518c57e16d541a34f220cc6bc5c10ad62bec2450
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const { execSync, spawn } = require('child_process');

beforeAll(async () => {
// Start a local server to serve the test project
const server = spawn('npx', ['serve', '-s', 'build', '-l', global.PORT], {
// We cached serve by installing it locally
const server = spawn('npx', ['serve@14.2.0', '-s', 'build', '-l', global.PORT], {
cwd: join(__dirname, 'test-project'),
});

Expand All @@ -15,7 +16,7 @@ beforeAll(async () => {

// Leave time for the server to initialize
await new Promise((resolve) => {
setTimeout(resolve, 5000);
setTimeout(resolve, 1000);
});
});

Expand Down
Loading