wallabyjs / public

Repository for Wallaby.js questions and issues
http://wallabyjs.com
757 stars 45 forks source link

Test decorations not showing #3287

Closed tslocke closed 9 months ago

tslocke commented 10 months ago

I've just noticed that the test decorations, e.g. "focus", are not showing. From past experience I believe this means other bad things are probably happening 🫤 My tests seem to be running very slowly and I'm getting stuck node processes.

I thought I'd use git bisect to figure out where the problem started, but every old commit I check out has the same problem, even going back months. I'm sure the problem wasn't there back then.

So I'm wondering what could cause that problem that's not tracked by git. I've tried forcing a core update, and reinstalling Wallby.

Anything else I can try? Thanks : )

{
  editorVersion: '1.83.1',
  pluginVersion: '1.0.371',
  editorType: 'VSCode',
  osVersion: 'darwin 22.3.0',
  nodeVersion: 'v16.16.0',
  coreVersion: '1.0.1485',
  checksum: 'N2VhN2NiODllMTA3NDI4YTQ2Yjk3OWIyOTAyOWMxZWYsMTcxNDI2MjQwMDAwMCww',
  config: {
    resolveGetters: true,
    logLimits: { inline: { depth: 12, elements: 5000 }, values: { default: { stringLength: 200 }, autoExpand: { elements: 5000, stringLength: 8192, depth: 10 } } },
    runMode: 'onSave',
    diagnostics: {
      vitest: {
        file: {
          config: "import { defineConfig, loadEnv } from 'vite'\n" +
            "import solid from 'vite-plugin-solid'\n" +
            "import tsconfigPaths from 'vite-tsconfig-paths'\n" +
            "import devtools from 'solid-devtools/vite'\n" +
            '\n' +
            'export default defineConfig(({mode}) => {\n' +
            '  process.env = {...process.env, ...loadEnv(mode, process.cwd())};\n' +
            '\n' +
            '  return {\n' +
            '    server: {\n' +
            '      port: +(process.env.VITE_PORT ?? 3000)\n' +
            '    },\n' +
            '\n' +
            '    plugins: [\n' +
            '      tsconfigPaths({loose: true}),\n' +
            '      solid({\n' +
            '        babel: {\n' +
            '          plugins: [\n' +
            '            // ["@locator/babel-jsx/dist", {env: "development"}],\n' +
            '          ],\n' +
            '        }\n' +
            '      })\n' +
            '    ],\n' +
            '\n' +
            '    build: {\n' +
            "      target: 'esnext',\n" +
            '      polyfillDynamicImport: false,\n' +
            '      minify: false,\n' +
            '      chunkSizeWarningLimit: 600,\n' +
            '      sourcemap: true,\n' +
            '      rollupOptions: {\n' +
            "        input: './src/main.tsx',\n" +
            '        output: {\n' +
            '          assetFileNames: "[name][extname]",\n' +
            '          chunkFileNames: "[name].js",\n' +
            '          entryFileNames: "[name].js",\n' +
            '          manualChunks: () => "main.js"\n' +
            '        }\n' +
            '      }\n' +
            '    },\n' +
            '\n' +
            '    optimizeDeps: {\n' +
            '      esbuildOptions: {\n' +
            "        target: 'esnext'\n" +
            '      }\n' +
            '    },\n' +
            '\n' +
            '    define: {\n' +
            `      ...(mode == 'production' ? {} : {'__REACT_DEVTOOLS_GLOBAL_HOOK__': '{ "isDisabled": true }'}),\n` +
            '      \n' +
            "      ...(mode == 'test' ? {} : \n" +
            '        {\n' +
            '          "process.env": {\n' +
            '            TAILWIND_MODE: JSON.stringify("build"),\n' +
            '          },\n' +
            '    \n' +
            '          "process.platform": JSON.stringify(""),\n' +
            '    \n' +
            '          "process.versions": null,\n' +
            '        }\n' +
            '      )\n' +
            '    },\n' +
            '\n' +
            '    test: {\n' +
            "      environment: 'jsdom',\n" +
            '      transformMode: {\n' +
            '        web: [/\\.[jt]sx?$/],\n' +
            '      },\n' +
            '      // solid needs to be inline to work around\n' +
            '      // a resolution issue in vitest:\n' +
            '      deps: {\n' +
            '        inline: [/solid-js/, /solid-app-router/],\n' +
            '      },\n' +
            '      // if you have few tests, try commenting one\n' +
            '      // or both out to improve performance:\n' +
            '      threads: true,\n' +
            '      isolate: true,\n' +
            '      globals: true\n' +
            '    },\n' +
            '\n' +
            '    resolve: {\n' +
            "      conditions: ['development', 'browser'],\n" +
            '      alias: [\n' +
            "        {find: 'glob-parent', replacement: 'src/fake-modules.ts'},\n" +
            "        {find: 'fast-glob', replacement: 'src/fake-modules.ts'},\n" +
            "        {find: 'fs', replacement: 'src/fake-modules.ts'},\n" +
            "        {find: 'os', replacement: 'src/fake-modules.ts'},\n" +
            "        {find: 'path', replacement: 'src/fake-modules.ts'},\n" +
            "        {find: 'source-map-js', replacement: 'src/fake-modules.ts'},\n" +
            "        {find: 'crypto', replacement: 'src/fake-modules.ts'},\n" +
            "        {find: 'url', replacement: 'node_modules/native-url/dist/index.js'},\n" +
            '      ]\n' +
            '    },\n' +
            '  }\n' +
            '})\n'
        },
        config: {
          config: {
            allowOnly: true,
            watch: true,
            globals: true,
            environment: 'jsdom',
            threads: true,
            clearMocks: false,
            restoreMocks: false,
            mockReset: false,
            include: [ '**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}' ],
            exclude: [
              '**/node_modules/**',
              '**/dist/**',
              '**/cypress/**',
              '**/.{idea,git,cache,output,temp}/**',
              '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*'
            ],
            testTimeout: 5000,
            hookTimeout: 10000,
            teardownTimeout: 10000,
            isolate: true,
            watchExclude: [ '**/node_modules/**', '**/dist/**' ],
            forceRerunTriggers: [ '**/package.json/**', '**/{vitest,vite}.config.*/**' ],
            update: false,
            reporters: [ 'default' ],
            silent: false,
            ui: false,
            uiBase: '/__vitest__/',
            open: true,
            css: { include: [], modules: { classNameStrategy: 'stable' } },
            coverage: {
              provider: 'c8',
              enabled: false,
              clean: true,
              cleanOnRerun: true,
              reportsDirectory: './coverage',
              exclude: [
                'coverage/**',
                'dist/**',
                'packages/*/test{,s}/**',
                '**/*.d.ts',
                'cypress/**',
                'test{,s}/**',
                'test{,-*}.{js,cjs,mjs,ts,tsx,jsx}',
                '**/*{.,-}test.{js,cjs,mjs,ts,tsx,jsx}',
                '**/*{.,-}spec.{js,cjs,mjs,ts,tsx,jsx}',
                '**/__tests__/**',
                '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
                '**/.{eslint,mocha,prettier}rc.{js,cjs,yml}'
              ],
              reporter: [ [ 'text', {} ], [ 'html', {} ], [ 'clover', {} ], [ 'json', {} ] ],
              extension: [
                '.js',  '.cjs',
                '.mjs', '.ts',
                '.mts', '.cts',
                '.tsx', '.jsx',
                '.vue', '.svelte'
              ]
            },
            fakeTimers: { loopLimit: 10000, shouldClearNativeTimers: true, toFake: [ 'setTimeout', 'clearTimeout', 'setInterval', 'clearInterval', 'setImmediate', 'clearImmediate', 'Date' ] },
            maxConcurrency: 5,
            dangerouslyIgnoreUnhandledErrors: false,
            typecheck: {
              checker: 'tsc',
              include: [ '**/*.{test,spec}-d.{ts,js}' ],
              exclude: [
                '**/node_modules/**',
                '**/dist/**',
                '**/cypress/**',
                '**/.{idea,git,cache,output,temp}/**',
                '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*'
              ]
            },
            slowTestThreshold: 300,
            transformMode: { web: [ {}, {} ] },
            deps: { inline: [ {}, {}, {}, {}, {}, {}, {}, '@nuxt/test-utils', '@solidjs/router', {}, {}, {}, '@nuxt/test-utils' ], registerNodeLoader: false, cacheDir: 'node_modules/.vite' },
            defines: { __REACT_DEVTOOLS_GLOBAL_HOOK__: { isDisabled: true } },
            root: '<homeDir>/Projects/Inio/inio/web',
            mode: [],
            inspect: false,
            inspectBrk: false,
            singleThread: false,
            snapshotOptions: { snapshotFormat: {}, updateSnapshot: 'new', snapshotEnvironment: null },
            setupFiles: [],
            cache: { dir: '<homeDir>/Projects/Inio/inio/web/node_modules/.vitest' },
            sequence: { hooks: 'parallel' },
            environmentMatchGlobs: [],
            browser: { enabled: false, headless: false, api: { port: 63315 } }
          },
          projects: [
            {
              path: '<homeDir>/Projects/Inio/inio/web',
              config: {
                allowOnly: true,
                watch: true,
                globals: true,
                environment: 'jsdom',
                threads: true,
                clearMocks: false,
                restoreMocks: false,
                mockReset: false,
                include: [ '**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}' ],
                exclude: [
                  '**/node_modules/**',
                  '**/dist/**',
                  '**/cypress/**',
                  '**/.{idea,git,cache,output,temp}/**',
                  '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*'
                ],
                testTimeout: 5000,
                hookTimeout: 10000,
                teardownTimeout: 10000,
                isolate: true,
                watchExclude: [ '**/node_modules/**', '**/dist/**' ],
                forceRerunTriggers: [ '**/package.json/**', '**/{vitest,vite}.config.*/**' ],
                update: false,
                reporters: [ 'default' ],
                silent: false,
                ui: false,
                uiBase: '/__vitest__/',
                open: true,
                css: { include: [], modules: { classNameStrategy: 'stable' } },
                coverage: {
                  provider: 'c8',
                  enabled: false,
                  clean: true,
                  cleanOnRerun: true,
                  reportsDirectory: './coverage',
                  exclude: [
                    'coverage/**',
                    'dist/**',
                    'packages/*/test{,s}/**',
                    '**/*.d.ts',
                    'cypress/**',
                    'test{,s}/**',
                    'test{,-*}.{js,cjs,mjs,ts,tsx,jsx}',
                    '**/*{.,-}test.{js,cjs,mjs,ts,tsx,jsx}',
                    '**/*{.,-}spec.{js,cjs,mjs,ts,tsx,jsx}',
                    '**/__tests__/**',
                    '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
                    '**/.{eslint,mocha,prettier}rc.{js,cjs,yml}'
                  ],
                  reporter: [ [ 'text', {} ], [ 'html', {} ], [ 'clover', {} ], [ 'json', {} ] ],
                  extension: [
                    '.js',  '.cjs',
                    '.mjs', '.ts',
                    '.mts', '.cts',
                    '.tsx', '.jsx',
                    '.vue', '.svelte'
                  ]
                },
                fakeTimers: { loopLimit: 10000, shouldClearNativeTimers: true, toFake: [ 'setTimeout', 'clearTimeout', 'setInterval', 'clearInterval', 'setImmediate', 'clearImmediate', 'Date' ] },
                maxConcurrency: 5,
                dangerouslyIgnoreUnhandledErrors: false,
                typecheck: {
                  checker: 'tsc',
                  include: [ '**/*.{test,spec}-d.{ts,js}' ],
                  exclude: [
                    '**/node_modules/**',
                    '**/dist/**',
                    '**/cypress/**',
                    '**/.{idea,git,cache,output,temp}/**',
                    '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*'
                  ]
                },
                slowTestThreshold: 300,
                transformMode: { web: [ {}, {} ] },
                deps: { inline: [ {}, {}, {}, {}, {}, {}, {}, '@nuxt/test-utils', '@solidjs/router', {}, {}, {}, '@nuxt/test-utils' ], registerNodeLoader: false, cacheDir: 'node_modules/.vite' },
                defines: { __REACT_DEVTOOLS_GLOBAL_HOOK__: { isDisabled: true } },
                root: '<homeDir>/Projects/Inio/inio/web',
                mode: [],
                inspect: false,
                inspectBrk: false,
                singleThread: false,
                snapshotOptions: { snapshotFormat: {}, updateSnapshot: 'new', snapshotEnvironment: null },
                setupFiles: [],
                cache: { dir: '<homeDir>/Projects/Inio/inio/web/node_modules/.vitest' },
                sequence: { hooks: 'parallel' },
                environmentMatchGlobs: [],
                browser: { enabled: false, headless: false, api: { port: 63315 } }
              }
            }
          ],
          package: {
            version: '0.30.1',
            urls: { hooks: 'file://<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/runners/node/hooks.mjs' },
            paths: { root: '<homeDir>/Projects/Inio/inio/web/node_modules/vitest', dist: '<homeDir>/Projects/Inio/inio/web/node_modules/vitest/dist' }
          }
        }
      }
    },
    testFramework: { version: 'vitest@0.14.0', configurator: 'vitest@0.14.0', reporter: 'vitest@0.14.0', starter: 'vitest@0.14.0', autoDetected: true },
    preserveComments: false,
    extractComments: true,
    files: [
      { pattern: '**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', ignore: true, trigger: true, load: true, file: true },
      { pattern: '**/node_modules/**', ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '**/dist/**', ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '**/cypress/**', ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '**/.{idea,git,cache,output,temp}/**', ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '**/*.*', ignore: false, trigger: true, load: true, order: 1 }
    ],
    tests: [
      { pattern: '**/node_modules/**', ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '**/dist/**', ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '**/cypress/**', ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '**/.{idea,git,cache,output,temp}/**', ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', ignore: false, trigger: true, load: true, test: true, order: 2 }
    ],
    workers: { initial: 1, regular: 1, recycle: false },
    dot: true,
    captureConsoleLog: true,
    filesWithNoCoverageCalculated: [],
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    compilers: {},
    preprocessors: {},
    maxConsoleMessagesPerTest: 100,
    autoConsoleLog: true,
    delays: { run: 0, edit: 100, update: 0 },
    teardown: undefined,
    hints: {
      ignoreCoverage: '__REGEXP /ignore coverage|istanbul ignore|c8 ignore/',
      ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
      commentAutoLog: '?',
      testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' }
    },
    automaticTestFileSelection: true,
    runSelectedTestsOnly: false,
    mapConsoleMessagesStackTrace: false,
    extensions: {},
    env: {
      type: 'node',
      params: { runner: '--experimental-loader=file://<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/runners/node/hooks.mjs' },
      runner: '<homeDir>/.fnm/node-versions/v16.16.0/installation/bin/node',
      viewportSize: { width: 800, height: 600 },
      options: { width: 800, height: 600 },
      bundle: true
    },
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    runAllTestsWhenNoAffectedTests: true,
    symlinkNodeModules: undefined,
    configCode: 'module.exports = function () {\n  return {\n    resolveGetters: true,\n\n    logLimits: {\n      inline: {\n        depth: 12,\n      }\n    },\n\n    runMode: "onSave",\n\n  };\n};\n'
  },
  packageJSON: {
    dependencies: {
      '@codemirror/lang-css': '^6.2.1',
      '@codemirror/lang-javascript': '^6.2.1',
      '@codemirror/theme-one-dark': '^6.1.2',
      '@floating-ui/dom': '^1.2.6',
      '@sentry/browser': '^7.49.0',
      '@sentry/tracing': '^7.49.0',
      '@solid-primitives/scheduled': '^1.3.2',
      '@solidjs/router': '^0.8.2',
      axios: '^1.3.6',
      'browser-util-inspect': '^0.2.0',
      chevrotain: '^10.5.0',
      codemirror: '^6.0.1',
      'escape-html': '^1.0.3',
      'fast-array-diff': '^1.1.0',
      'fractional-indexing': '^3.2.0',
      fuzzy: '^0.1',
      'hotkeys-js': '^3.10.2',
      inflection: '^2.0.1',
      minisearch: '^6.0.1',
      mitt: '^3.0',
      nanoid: '^4.0.2',
      'native-url': '^0.3.4',
      'next-tick': '^1.1',
      postcss: '^8.4.14',
      'prosemirror-commands': '1.5.1',
      'prosemirror-dropcursor': '1.8.0',
      'prosemirror-history': '1.3.1',
      'prosemirror-inputrules': '1.2',
      'prosemirror-keymap': '1.2.1',
      'prosemirror-model': '1.19.0',
      'prosemirror-state': '1.4.2',
      'prosemirror-transform': '1.7.1',
      'prosemirror-view': '1.31.1',
      'pusher-js': '^8.0.2',
      ramda: '^0.29.0',
      replicache: '^12.2.1',
      'scroll-into-view-if-needed': '^3.0.10',
      'solid-boundaries': '^2.1.0',
      'solid-js': '^1.7.3',
      tailwindcss: '3.1.7',
      'tippy.js': '^6.3',
      xregexp: '^5.1.1'
    },
    devDependencies: {
      '@lezer/generator': '^1.5.1',
      '@tailwindcss/forms': '^0.5',
      '@tailwindcss/line-clamp': '^0.4',
      '@tailwindcss/typography': '^0.5',
      '@types/escape-html': '^1.0.2',
      '@types/inflection': '^1.13.0',
      '@types/json-pointer': '^1.0.31',
      '@types/next-tick': '^1.0.0',
      '@types/node': '^18.15.13',
      '@types/object-inspect': '^1.8.1',
      '@types/ramda': '^0.29.0',
      autoprefixer: '^10.4',
      'babel-preset-solid': '^1.7.3',
      jsdom: '^21.1.1',
      'json-beautify': '^1.1',
      'json-pointer': '^0.6.2',
      'object-inspect': '^1.12.3',
      'patch-package': '^6.5.1',
      'postcss-import': '^14.1.0',
      'postinstall-postinstall': '^2.1.0',
      'solid-devtools': '^0.26.0',
      'solid-testing-library': '^0.5.1',
      'ts-unused-exports': '^9.0.4',
      typescript: '^5.0.4',
      vite: '^4.3.1',
      'vite-plugin-solid': '^2.7.0',
      'vite-tsconfig-paths': '^4.2.0',
      vitest: '^0.30.1'
    }
  },
  fs: { numberOfFiles: 274 },
  debug: [
    '2023-10-25T19:27:07.880Z project waiting for initial run signal\n',
    '2023-10-25T19:27:07.894Z config Attempting automatic configuration for angular\n',
    '2023-10-25T19:27:07.897Z angular/cli config Angular CLI not found.\n',
    '2023-10-25T19:27:07.897Z config Finished attempting automatic configuration for angular (3ms)\n',
    '2023-10-25T19:27:07.897Z config Attempting automatic configuration for jest\n',
    "2023-10-25T19:27:07.899Z jest/config Error: Module jest-cli is not found in '<homeDir>/Projects/Inio/inio/web'.\n" +
      '    at Object.loadJest (<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/server.js:496:1070)\n' +
      '    at n (<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/server.js:184:23339)\n' +
      '    at Object.configure (<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/server.js:184:26449)\n' +
      '    at automaticConfigurationProviders.reduce.Promise.resolve.success (<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/server.js:132:12015)\n' +
      '    at async automaticConfigurationProviders.reduce.Promise.resolve.success (<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/server.js:132:11892)\n' +
      '    at async Config.load (<homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/wallaby1a2b4b/server.js:132:11832)\n',
    '2023-10-25T19:27:07.899Z config Finished attempting automatic configuration for jest (2ms)\n',
    '2023-10-25T19:27:07.899Z config Attempting automatic configuration for vitest\n',
    '2023-10-25T19:27:07.902Z vitest/config Detected Vitest (0.30.1).\n',
    '2023-10-25T19:27:09.132Z config Finished attempting automatic configuration for vitest (1233ms)\n',
    '2023-10-25T19:27:09.133Z project Wallaby Node version: v16.16.0\n',
    '2023-10-25T19:27:09.133Z project Wallaby config: <homeDir>/Projects/Inio/inio/web/wallaby.js\n',
    '2023-10-25T19:27:09.146Z fs File system starting\n',
    '2023-10-25T19:27:09.198Z fs File system scan completed\n',
    '2023-10-25T19:27:09.203Z project File cache: <homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.371/projects/b6c1129a40e7d527\n',
    '2023-10-25T19:27:09.259Z uiService Listening port 51235\n',
    '2023-10-25T19:27:09.264Z project package.json file change detected, invalidating local cache\n',
    '2023-10-25T19:27:09.276Z workers Parallelism for initial run: 1, for regular run: 1\n',
    '2023-10-25T19:27:09.276Z workers Starting run worker instance #0\n',
    '2023-10-25T19:27:09.276Z workers Web server is listening at 51365\n',
    '2023-10-25T19:27:09.277Z project File cache requires some updates, waiting required files from IDE\n',
    '2023-10-25T19:27:09.302Z fs File changed in editor: src/store/directory.ts\n',
    '2023-10-25T19:27:09.307Z fs File changed in editor: src/node-views/ImageBlockNodeView.tsx\n',
    '2023-10-25T19:27:09.459Z project Stopping process pool\n',
    '2023-10-25T19:27:09.460Z project Test run started; run priority: 3\n',
    '2023-10-25T19:27:09.462Z project Running all tests\n',
    '2023-10-25T19:27:09.468Z workers Starting test run, priority: 3\n',
    '2023-10-25T19:27:09.468Z nodeRunner Starting sandbox [worker #0, session #lk8nh]\n',
    '2023-10-25T19:27:09.468Z nodeRunner Preparing sandbox [worker #0, session #lk8nh]\n',
    '2023-10-25T19:27:09.474Z workers Started run worker instance (delayed) #0\n',
    '2023-10-25T19:27:09.474Z nodeRunner Prepared sandbox [worker #0, session #lk8nh]\n',
    '2023-10-25T19:27:09.474Z workers [worker #0, session #lk8nh] Running tests in sandbox\n',
    '2023-10-25T19:27:10.559Z workers Scheduling Vitest Run (lk8nh): 2023-10-25T19:27:10.534Z\n',
    '2023-10-25T19:27:23.558Z workers [lk8nh.5] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:23.559Z workers [lk8nh.5] Test executed: new links should be tracked\n',
    '2023-10-25T19:27:23.569Z workers [lk8nh.5] Test executed: on creating a link, the linked node should have a corresponding backlink\n',
    '2023-10-25T19:27:23.570Z workers [lk8nh.5] Test executed: content added under a link should also appear under the reverse link\n',
    '2023-10-25T19:27:23.570Z workers [lk8nh.5] Test executed: content nested under a link should be editable under the reverse link\n',
    '2023-10-25T19:27:23.570Z workers [lk8nh.5] Test executed: can add a new paragraph under a reverse link\n',
    '2023-10-25T19:27:23.571Z workers [lk8nh.5] Test executed: enter at start of paragraph with link should not create/delete links\n',
    '2023-10-25T19:27:23.571Z workers [lk8nh.5] Test executed: links should be cleaned up after deleting a page that is linked to\n',
    '2023-10-25T19:27:23.572Z workers [lk8nh.5] Test executed: splitting a paragraph that has links after the split should not delete the link\n',
    '2023-10-25T19:27:23.572Z workers [lk8nh.5] Test executed: Backlinks should appear on creating link\n',
    '2023-10-25T19:27:23.572Z workers [lk8nh.5] Test executed: Enter after link\n',
    '2023-10-25T19:27:23.572Z workers [lk8nh.5] Test executed: deleting a link should be undoable\n',
    '2023-10-25T19:27:23.573Z workers [lk8nh.5] Test executed: setting template should not break links\n',
    '2023-10-25T19:27:23.661Z workers [lk8nh.6] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:23.661Z workers [lk8nh.6] Test executed: should be able to delete a paragraph\n',
    '2023-10-25T19:27:23.662Z workers [lk8nh.7] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:23.668Z workers [lk8nh.7] Test executed: fold a list\n',
    '2023-10-25T19:27:23.677Z workers [lk8nh.6] Test executed: should be able to delete a list item\n',
    '2023-10-25T19:27:23.678Z workers [lk8nh.7] Test executed: items inside a closed fold are deleted\n',
    '2023-10-25T19:27:23.693Z workers [lk8nh.6] Test executed: a paragraph to create list\n',
    '2023-10-25T19:27:23.694Z workers [lk8nh.6] Test executed: a list to make it a sub-list\n',
    '2023-10-25T19:27:23.694Z workers [lk8nh.6] Test executed: a blank paragraph to create a list\n',
    '2023-10-25T19:27:23.695Z workers [lk8nh.6] Test executed: to join a preceding list\n',
    '2023-10-25T19:27:23.695Z workers [lk8nh.6] Test executed: the first item in a list\n',
    '2023-10-25T19:27:23.695Z workers [lk8nh.6] Test executed: a list header to unwrap it\n',
    '2023-10-25T19:27:23.696Z workers [lk8nh.6] Test executed: a sub-list\n',
    '2023-10-25T19:27:23.696Z workers [lk8nh.7] Test executed: fold, unfold, confirm contents\n',
    '2023-10-25T19:27:23.697Z workers [lk8nh.6] Test executed: in the middle of a list\n',
    '2023-10-25T19:27:23.698Z workers [lk8nh.6] Test executed: Double enter should break out of a blockquote\n',
    '2023-10-25T19:27:23.708Z workers [lk8nh.7] Test executed: fold, unfold, undo\n',
    '2023-10-25T19:27:23.709Z workers [lk8nh.7] Test executed: split folded heading twice\n',
    '2023-10-25T19:27:23.710Z workers [lk8nh.7] Test executed: backspace to join list with folded list should be prevented\n',
    '2023-10-25T19:27:23.711Z workers [lk8nh.7] Test executed: deleteing a closed fold should be undoable\n',
    '2023-10-25T19:27:23.712Z workers [lk8nh.7] Test executed: outdenting and indenting a closed fold should maintain any child blocks\n',
    '2023-10-25T19:27:23.713Z workers [lk8nh.7] Test executed: outdenting a folded node in the middle of a list should unfold it first\n',
    '2023-10-25T19:27:23.714Z workers [lk8nh.7] Test executed: indenting a node directly after a folded node should unfold it first\n',
    '2023-10-25T19:27:23.930Z workers [lk8nh.4] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:23.931Z workers [lk8nh.4] Test executed: Adding a link to a visible sub-page should also add the backlink\n',
    '2023-10-25T19:27:23.931Z workers [lk8nh.4] Test executed: Adding a sub-page to the current page, and then a link to it, should also add the backlink\n',
    '2023-10-25T19:27:23.931Z workers [lk8nh.4] Test executed: Deleting a link to a visible sub-page should remove backlinks\n',
    '2023-10-25T19:27:23.931Z workers [lk8nh.4] Test executed: Deleting a node with a link to a visible sub-page should remove backlinks\n',
    '2023-10-25T19:27:23.931Z workers [lk8nh.4] Test executed: Adding a new para to a child of a link, should add it to the backlink\n',
    '2023-10-25T19:27:23.938Z workers [lk8nh.4] Test executed: Deleting a para from a child of a link, should remove it from the backlink\n',
    '2023-10-25T19:27:23.954Z workers [lk8nh.4] Test executed: adding a field to the template correctly updates the template-instance\n',
    '2023-10-25T19:27:23.954Z workers [lk8nh.4] Test executed: deleting a field from the template correctly updates the template-instance\n',
    '2023-10-25T19:27:23.954Z workers [lk8nh.4] Test executed: reordering fields in the template correctly updates the template-instance\n',
    '2023-10-25T19:27:23.954Z workers [lk8nh.4] Test executed: edit heading\n',
    '2023-10-25T19:27:23.954Z workers [lk8nh.4] Test executed: edit paragraph\n',
    '2023-10-25T19:27:23.955Z workers [lk8nh.4] Test executed: Indent and outdent\n',
    '2023-10-25T19:27:23.955Z workers [lk8nh.4] Test executed: Swap nodes\n',
    '2023-10-25T19:27:23.955Z workers [lk8nh.4] Test executed: editing a field on a template-instance page with an items field\n',
    '2023-10-25T19:27:24.036Z workers [lk8nh.3] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:24.037Z workers [lk8nh.3] Test executed: adding some text should sync\n',
    '2023-10-25T19:27:24.037Z workers [lk8nh.3] Test executed: enter between paras should sync\n',
    '2023-10-25T19:27:24.037Z workers [lk8nh.3] Test executed: indent should sync\n',
    '2023-10-25T19:27:24.038Z workers [lk8nh.3] Test executed: outdent should sync\n',
    '2023-10-25T19:27:24.038Z workers [lk8nh.3] Test executed: indent with preceding para should sync\n',
    '2023-10-25T19:27:24.038Z workers [lk8nh.3] Test executed: outdent with preceding para should sync\n',
    '2023-10-25T19:27:24.038Z workers [lk8nh.3] Test executed: convert list to page should sync\n',
    '2023-10-25T19:27:24.038Z workers [lk8nh.3] Test executed: convert page to list should sync\n',
    '2023-10-25T19:27:24.038Z workers [lk8nh.3] Test executed: adding a field should sync\n',
    '2023-10-25T19:27:24.041Z workers [lk8nh.3] Test executed: adding a field before a paragraph should sync\n',
    '2023-10-25T19:27:24.086Z workers [lk8nh.3] Test executed: swapping two fields should sync\n',
    '2023-10-25T19:27:24.086Z workers [lk8nh.3] Test executed: swapping a fieldset and a paragraph should sync\n',
    '2023-10-25T19:27:24.094Z workers [lk8nh.3] Test executed: editing a template field value should sync\n',
    '2023-10-25T19:27:24.096Z workers [lk8nh.3] Test executed: adding a new part with a template should sync\n',
    '2023-10-25T19:27:24.097Z workers [lk8nh.3] Test executed: editing a field on a template-instance page with an items field\n',
    '2023-10-25T19:27:24.098Z workers [lk8nh.3] Test executed: editing a field name on a template should sync to the template instance\n',
    '2023-10-25T19:27:24.420Z workers [lk8nh.2] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:24.421Z workers [lk8nh.2] Test executed: blank fields should be populated from template\n',
    '2023-10-25T19:27:24.423Z workers [lk8nh.2] Test executed: assigning a template to a page should bring in template fields\n',
    '2023-10-25T19:27:24.424Z workers [lk8nh.2] Test executed: assigning a template to a page should bring in template sections\n',
    '2023-10-25T19:27:24.425Z workers [lk8nh.2] Test executed: clearing a template from a page should remove the templateSection\n',
    '2023-10-25T19:27:24.426Z workers [lk8nh.2] Test executed: changing a block to be a template instance should populate the template-section\n',
    '2023-10-25T19:27:24.427Z workers [lk8nh.2] Test executed: fields with simple values should be populated from template and field data\n',
    '2023-10-25T19:27:24.428Z workers [lk8nh.2] Test executed: a template blocks-field should be populated correctly\n',
    '2023-10-25T19:27:24.429Z workers [lk8nh.2] Test executed: sections from templates should be populated correctly\n',
    '2023-10-25T19:27:24.430Z workers [lk8nh.2] Test executed: edits to a template-instance text field should be stored in .values\n',
    '2023-10-25T19:27:24.431Z workers [lk8nh.2] Test executed: edits to a template-instance formatted-text field should be stored in .values\n',
    '2023-10-25T19:27:24.434Z workers [lk8nh.2] Test executed: edits to an template-instance items field should be stored as child blocks\n',
    '2023-10-25T19:27:24.435Z workers [lk8nh.2] Test executed: edits to template-instance sections should be stored in .values\n',
    '2023-10-25T19:27:24.435Z workers [lk8nh.2] Test executed: edits to template-instance clarity field should be stored in .values\n',
    '2023-10-25T19:27:24.435Z workers [lk8nh.2] Test executed: Edits to an un-set template-instance sections should create the initial blocks\n',
    '2023-10-25T19:27:24.436Z workers [lk8nh.2] Test executed: enter in a from-template field should not create a new field\n',
    '2023-10-25T19:27:24.436Z workers [lk8nh.2] Test executed: converting a page into a template should preserve the content\n',
    '2023-10-25T19:27:24.436Z workers [lk8nh.2] Test executed: Editing items inside a template-instance-block should not mess up nodeRevs\n',
    '2023-10-25T19:27:24.436Z workers [lk8nh.2] Test executed: deleting a block inside template-instance-block items should update store correctly\n',
    '2023-10-25T19:27:24.437Z workers [lk8nh.2] Test executed: changing the type of a template field should update the instance values\n',
    '2023-10-25T19:27:24.437Z workers [lk8nh.2] Test executed: deleting a template field should update the instance values\n',
    '2023-10-25T19:27:24.446Z workers [lk8nh.2] Test executed: deleting a template page should update the instance values\n',
    '2023-10-25T19:27:24.470Z workers [lk8nh.2] Test executed: formatted text fields on intsntances should support links\n',
    '2023-10-25T19:27:24.511Z workers [lk8nh.2] Test executed: Deleteing a link from an instance field should delete the link block\n',
    '2023-10-25T19:27:24.511Z workers [lk8nh.2] Test executed: should be possible to edit instance fields of a template\n',
    '2023-10-25T19:27:28.094Z workers Some long running code has been detected: test "scriptlet in class" is taking more than 5000ms to execute.\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Also review your recent changes to the code that the test covers, as well as its `before` and `after` hooks.\n' +
      'Pinging test runner sandbox...\n',
    '2023-10-25T19:27:28.295Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2023-10-25T19:27:29.512Z workers Some long running code has been detected: one of your tests is taking more than 5000ms to execute.\n',
    '2023-10-25T19:27:34.691Z workers Sandbox is responsive. The issue may be asynchronous in nature (for example, a missing callback).\n',
    '2023-10-25T19:27:37.627Z workers [lk8nh.8] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:37.633Z workers [lk8nh.8] Test executed: A block with fields should become a node with a fieldset\n',
    '2023-10-25T19:27:37.663Z workers [lk8nh.8] Test executed: Edits to a formattedText field should store as .value on the field block\n',
    '2023-10-25T19:27:37.676Z workers [lk8nh.8] Test executed: Items fields should store as regular child blocks of the field\n',
    '2023-10-25T19:27:37.676Z workers [lk8nh.9] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:37.677Z workers [lk8nh.8] Test executed: Editing the fieldName in the doc should update the name prop\n',
    '2023-10-25T19:27:37.677Z workers [lk8nh.8] Test executed: Enter at the end of a field value should create a new field\n',
    '2023-10-25T19:27:37.678Z workers [lk8nh.9] Test executed: backspace at start of list\n',
    '2023-10-25T19:27:37.679Z workers [lk8nh.8] Test executed: Should be able to delete last field\n',
    '2023-10-25T19:27:37.679Z workers [lk8nh.9] Test executed: delete just before start of list\n',
    '2023-10-25T19:27:37.680Z workers [lk8nh.8] Test executed: changBlockType in a field should change the field type\n',
    '2023-10-25T19:27:37.680Z workers [lk8nh.10] Test executed: should be possible to copy/paste a part block\n',
    '2023-10-25T19:27:37.681Z workers [lk8nh.8] Test executed: should be possible to change a plain text field to an items field\n',
    '2023-10-25T19:27:37.682Z workers [lk8nh.9] Test executed: enter at start of list\n',
    '2023-10-25T19:27:37.682Z workers [lk8nh.8] Test executed: should be possible to change a plain text field to a clarity field\n',
    '2023-10-25T19:27:37.683Z workers [lk8nh.10] Test executed: should be possible to copy/paste an instance block with an unlabelled field\n',
    '2023-10-25T19:27:37.683Z workers [lk8nh.9] Test executed: backspace at start of para following list\n',
    '2023-10-25T19:27:37.684Z workers [lk8nh.10] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:37.685Z workers [lk8nh.9] Test executed: delete at very end of list followed by para\n',
    '2023-10-25T19:27:37.685Z workers [lk8nh.10] Test executed: adding a new part node with a template should not lead to a refresh\n',
    '2023-10-25T19:27:37.686Z workers [lk8nh.9] Test executed: backspace sigil to convert page to list\n',
    '2023-10-25T19:27:37.686Z workers [lk8nh.10] Test executed: initial part block content should be populated from the template\n',
    '2023-10-25T19:27:37.687Z workers [lk8nh.9] Test executed: enter in a list\n',
    '2023-10-25T19:27:37.687Z workers [lk8nh.10] Test executed: Part definitions as nodes should have a templateSection but no content\n',
    '2023-10-25T19:27:37.687Z workers [lk8nh.9] Test executed: swap up\n',
    '2023-10-25T19:27:37.688Z workers [lk8nh.10] Test executed: part block content that overrides default content should have keys\n',
    '2023-10-25T19:27:37.697Z workers [lk8nh.9] Test executed: swap down\n',
    '2023-10-25T19:27:37.703Z workers [lk8nh.12] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:37.708Z workers [lk8nh.12] Test executed: simple page\n',
    '2023-10-25T19:27:37.724Z workers [lk8nh.12] Test executed: page with content\n',
    '2023-10-25T19:27:37.796Z workers [lk8nh.8] Test executed: edits to a block field should be stored as children of the field block\n',
    '2023-10-25T19:27:37.802Z workers [lk8nh.8] Test executed: formatted text fields should support links\n',
    '2023-10-25T19:27:37.869Z workers [lk8nh.12] Test executed: page with content\n',
    '2023-10-25T19:27:37.872Z workers [lk8nh.12] Test executed: simple page\n',
    '2023-10-25T19:27:37.875Z workers [lk8nh.12] Test executed: page with content\n',
    '2023-10-25T19:27:37.881Z workers [lk8nh.12] Test executed: page with content\n',
    '2023-10-25T19:27:37.887Z workers [lk8nh.12] Test executed: cursor position\n',
    '2023-10-25T19:27:37.900Z workers [lk8nh.12] Test executed: cursor position in a list head\n',
    '2023-10-25T19:27:37.954Z workers [lk8nh.12] Test executed: node selection\n',
    '2023-10-25T19:27:38.057Z workers [lk8nh.11] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:38.120Z workers [lk8nh.11] Test executed: enter at start of paragraph should give valid orders\n',
    '2023-10-25T19:27:38.138Z workers [lk8nh.11] Test executed: Insert two, undo, enter\n',
    '2023-10-25T19:27:38.157Z workers [lk8nh.11] Test executed: Change list to bullets\n',
    '2023-10-25T19:27:38.159Z workers [lk8nh.11] Test executed: join two lists\n',
    '2023-10-25T19:27:38.194Z workers [lk8nh.11] Test executed: delete a list\n',
    '2023-10-25T19:27:38.487Z workers [lk8nh.13] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:38.487Z workers [lk8nh.13] Test executed: delete only item\n',
    '2023-10-25T19:27:38.487Z workers [lk8nh.13] Test executed: Enter in a page without items should create the first child\n',
    '2023-10-25T19:27:38.487Z workers [lk8nh.13] Test executed: Enter should split the heading of an empty page\n',
    '2023-10-25T19:27:38.487Z workers [lk8nh.13] Test executed: Enter after the heading of a page with one paragraph should create a new paragraph\n',
    '2023-10-25T19:27:38.487Z workers [lk8nh.13] Test executed: a sub-page should be stored with a parentKey\n',
    '2023-10-25T19:27:38.492Z workers [lk8nh.13] Test executed: deleting all the content of the heading should blank the name\n',
    '2023-10-25T19:27:38.494Z workers [lk8nh.13] Test executed: enter then type after page heading\n',
    '2023-10-25T19:27:38.504Z workers [lk8nh.13] Test executed: delete only item\n',
    '2023-10-25T19:27:39.406Z workers [lk8nh.14] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:39.409Z workers [lk8nh.14] Test executed: a couple of deletes then a couple of undos\n',
    '2023-10-25T19:27:39.410Z workers [lk8nh.14] Test executed: Outdent to unwrap a list, then undo\n',
    '2023-10-25T19:27:39.411Z workers [lk8nh.14] Test executed: Outdenting shoudld not mess up node tracking\n',
    '2023-10-25T19:27:39.572Z workers [lk8nh.15] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:39.572Z workers [lk8nh.15] Test executed: presence\n',
    '2023-10-25T19:27:39.573Z workers [lk8nh.15] Test executed: objectDiff\n',
    '2023-10-25T19:27:48.024Z workers [lk8nh.19] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:48.050Z workers [lk8nh.19] Test executed: replace sigil with embedded page and heading\n',
    '2023-10-25T19:27:48.177Z workers [lk8nh.18] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:48.178Z workers [lk8nh.18] Test executed: parse-dom\n',
    '2023-10-25T19:27:48.290Z workers [lk8nh.16] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:48.293Z workers [lk8nh.16] Test executed: a copy of a new node should have a unique id\n',
    '2023-10-25T19:27:48.300Z workers [lk8nh.16] Test executed: a copy of a saved node should have a unique id\n',
    '2023-10-25T19:27:48.302Z workers [lk8nh.16] Test executed: a copy of a nested node should have a unique id\n',
    '2023-10-25T19:27:48.304Z workers [lk8nh.16] Test executed: nodes deleted from the document should be deleted from the store\n',
    '2023-10-25T19:27:48.379Z workers [lk8nh.20] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:48.379Z workers [lk8nh.20] Test executed: should be possible to render data from a store\n',
    '2023-10-25T19:27:48.380Z workers [lk8nh.20] Test executed: should be possible to render block fields as if they are simple object properties\n',
    '2023-10-25T19:27:52.980Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- tests/blocks-to-clarity.test.ts\n' +
      '- tests/helpers.ts\n' +
      '- src/services/block-to-node.ts\n' +
      '- src/services/node-to-block.ts\n' +
      '- src/editor/schema/fields-schema.ts\n' +
      '- src/editor/schema/index.ts\n' +
      '- src/documents/resolved-node.ts\n' +
      '- src/data/index.ts\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2023-10-25T19:27:53.022Z workers Sandbox is responsive. The issue may be asynchronous in nature (for example, a missing callback).\n',
    '2023-10-25T19:27:54.686Z workers [lk8nh.21] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:54.686Z workers [lk8nh.21] Test executed: storing a page should store its blocks\n',
    '2023-10-25T19:27:54.687Z workers [lk8nh.21] Test executed: storing a page should store nested blocks inside a list\n',
    '2023-10-25T19:27:54.759Z workers [lk8nh.22] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:54.760Z workers [lk8nh.22] Test executed: create system blocks from json\n',
    '2023-10-25T19:27:54.762Z workers [lk8nh.22] Test executed: part-def template should exist in store\n',
    '2023-10-25T19:27:54.819Z workers [lk8nh.23] Loaded unknown number of test(s)\n',
    '2023-10-25T19:27:54.820Z workers [lk8nh.23] Test executed: meta-children and children should be separated\n',
    '2023-10-25T19:27:58.190Z workers Vitest Run Complete (lk8nh): 2023-10-25T19:27:58.184Z\n',
    '2023-10-25T19:27:58.191Z workers [lk8nh] Run 153 test(s), skipped 0 test(s)\n',
    '2023-10-25T19:27:58.192Z workers [lk8nh] Sandbox is responsive, closing it\n',
    '2023-10-25T19:27:58.278Z project Test run finished\n',
    '2023-10-25T19:27:58.278Z project Processed console.log entries\n',
    '2023-10-25T19:27:58.279Z project Processed loading sequences\n',
    '2023-10-25T19:27:58.281Z project Test name duplicate: page with content\n',
    '2023-10-25T19:27:58.281Z project Test name duplicate: page with content\n',
    '2023-10-25T19:27:58.282Z project Processed executed tests\n',
    '2023-10-25T19:27:58.360Z project Processed code coverage\n',
    '2023-10-25T19:27:58.537Z project Test run result processed and sent to IDE\n',
    '2023-10-25T19:27:58.594Z fs No metadata for added file found: node_modules/.vitest/results.json\n'
  ]
}
smcenlly commented 10 months ago

I've just noticed that the test decorations, e.g. "focus", are not showing.

This can be expected sometimes (for example, if a test does not run at all). There are also VS Code settings that you may like to double check:

image

From past experience I believe this means other bad things are probably happening 🫤

We tried using your dependencies, Vite, and Wallaby configuration and everything appears to be working for us. But it may be related to your tests themselves.

My tests seem to be running very slowly and I'm getting stuck node processes.

Are they running slowly only in Wallaby? You should be able to check using time npx vitest --run to run your tests from the command-line.

I thought I'd use git bisect to figure out where the problem started, but every old commit I check out has the same problem, even going back months. I'm sure the problem wasn't there back then.

Are you able to provide us with a sample that has the same problem? If you're able, you could also try an older Wallaby version by following our offline installation instructions. This may help isolate if it's a Wallaby-related issue.

tslocke commented 10 months ago

This can be expected sometimes (for example, if a test does not run at all)

I assume this means that when I was testing old commits, I should have been running the tests before concluding there was a problem, which I did not originally do, so my conclusion that the problem is not in my code is probably wrong.

smcenlly commented 10 months ago

I assume this means that when I was testing old commits, I should have been running the tests before concluding there was a problem, which I did not originally do, so my conclusion that the problem is not in my code is probably wrong.

I'm not entirely clear on what you did to test your old commits. If you were reverting to previous commits, you would definitely want to reinstall your packages and restart Wallaby each time you made a change to make sure Wallaby was using the old dependencies and configuration.

tslocke commented 9 months ago

Have found some time to look into this and am working on a proper repro for you.

Quick question - is it expected that if I have a .only on a test, the decorations won't show at all, including on the one test that runs? (that's what I'm seeing)

tslocke commented 9 months ago

OK I managed to create a very minimal repro that's showing one of the various problems I'm having. It's a different issue so I'll open a new ticket.

Actually it's an old one that's shown up again - I found the old ticket so I'll re-open that one (#3165)

UPDATE: Turns out I don't get to re-open the ticket so that one is still closed, but it has the repro info in a new comment.

tslocke commented 9 months ago

It looks like part of the problem might be an error in your exception handling code (or is it in vitest? I'm not sure). I ended up hacking around in the vscode extensions directory to fix this:

In runners/node/vitest@0.14.0/shared.mjs I found (this is minimised of course):

s.log.push(e.setAssertionData(err, { message: "Test never executed, likely due to an uncaught exception", passed: !1 }))

That err is not in scope. I changed it to {}. I think that has helped but I'm still tracing other problems.

tslocke commented 9 months ago

OK this got weird. After fixing that err is undefined error, I started seeing 'Test never executed, likely due to an uncaught exception' in the Wallaby Tests panel. I removed... well everything 😁, and I'm still seeing it.

It happens when one test has a .only and one doesn't.

No problems running this via vitest on the command line.

Repo: https://github.com/tslocke/wallaby-issue-2023.11-uncaught-exception

Screenshot 2023-11-15 at 11 10 30

smcenlly commented 9 months ago

This is the same problem as: https://github.com/wallabyjs/public/issues/3165