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 51096cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 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.18.0']
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.18.0', '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.18.0', '18']
name: Node ${{ matrix.node }} (Windows)
steps:
- name: Checkout Commit
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -124,7 +124,7 @@
"dist/es/package.json"
],
"engines": {
"node": ">=14.13.1",
"node": ">=14.18.0",
"npm": ">=8.0.0"
},
"exports": {
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 51096cc

Please sign in to comment.