Skip to content

Commit

Permalink
chore: ci workaround mocha issue
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach committed Jun 20, 2024
1 parent a1813fc commit ce519fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .vscode-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ import * as path from 'path';
import * as fs from 'fs';
import * as os from 'os';
import { defineConfig } from '@vscode/test-cli';
import { globSync } from 'glob';

// Workaround https://github.com/microsoft/vscode/issues/86382, but creating a tmp user data dir
const userDir = fs.mkdtempSync(path.join(os.tmpdir(), 'vscode-humanitec-'));

const files = globSync('out/test/**/*.test.js');

console.log(files);

Check failure on line 12 in .vscode-test.mjs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

'console' is not defined

export default defineConfig([
{
label: 'unitTests',
files: 'out/test/**/*.test.js',
files,
workspaceFolder: './src/test/test-fixtures/workspace',
mocha: {
ui: 'tdd',
Expand Down

0 comments on commit ce519fb

Please sign in to comment.