Skip to content

Commit

Permalink
Debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 27, 2022
1 parent e77f38c commit 06587f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14']
node: ['14.13.1']
name: Node ${{ matrix.node }} (Linux)
steps:
- name: Checkout Commit
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
node: ['14', '18']
node: ['14.13.1', '18']
name: Node ${{ matrix.node }} (macOS)
steps:
- name: Checkout Commit
Expand All @@ -98,7 +98,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
node: ['14', '18']
node: ['14.13.1', '18']
name: Node ${{ matrix.node }} (Windows)
steps:
- name: Checkout Commit
Expand Down
13 changes: 7 additions & 6 deletions test/cli/samples/watch/watch-config-early-update/_config.js
@@ -1,6 +1,6 @@
const { mkdirSync, unlinkSync } = require('fs');
const path = require('path');
const { writeAndSync, writeAndRetry } = require('../../../../utils');
const { wait, writeAndSync, writeAndRetry } = require('../../../../utils');

const configFile = path.join(__dirname, 'rollup.config.mjs');
let stopUpdate;
Expand Down Expand Up @@ -48,11 +48,11 @@ module.exports = {
stopUpdate();
},
abortOnStderr(data) {
console.log('data', data);
if (data === 'initial\n') {
stopUpdate = writeAndRetry(
configFile,
`
wait(200).then(() => {
stopUpdate = writeAndRetry(
configFile,
`
console.error('updated');
export default {
input: 'main.js',
Expand All @@ -61,7 +61,8 @@ module.exports = {
format: "es"
}
};`
);
);
});
return false;
}
if (data.includes(`created _actual/output2.js`)) {
Expand Down

0 comments on commit 06587f3

Please sign in to comment.