Skip to content

Commit

Permalink
build: Add test config printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielku15 committed Mar 31, 2024
1 parent 6eeefd1 commit 105289c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
with:
node-version: lts/*
- run: npm install
- name: Print Test Config
run: node ./.vscode-test.mjs
env:
VSCODE_CONFIG_LOG: true
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
Expand Down
10 changes: 8 additions & 2 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let createCommonOptions = (label) => {
}
};

export default defineConfig([
const config = [
{
label: 'unit',
files: 'out/test/unit/**/*.test.js',
Expand All @@ -60,4 +60,10 @@ export default defineConfig([
...createCommonOptions(label),
};
}),
]);
];

if (process.env.VSCODE_CONFIG_LOG) {
console.log(config);
}

export default defineConfig(config);

0 comments on commit 105289c

Please sign in to comment.