Inconsistent module errors with pool: 'forks' (or vmForks). fileParallelism: false or maxWorkers: 1 fix the problem, but makes the tests slow.
pool: threads (or vmThreads) work fine.
Importing and calling createVuetify function in multiple test files increases the likelihood of error, but it can happen without vuetify. It seems that the more imports are in test files, the greater the probability of an error.
run npm test a few times until the error appears
or npm run test:50 to run the test 50 times
SyntaxError: Unexpected end of input
SyntaxError: Unexpected token '}'
SyntaxError: missing ) after argument list
SyntaxError: Missing initializer in const declaration
TypeError: (0 , vite_ssr_import_3.genericComponent) is not a function
TypeError: (0 , vite_ssr_import_2.createVuetify) is not a function
TypeError: (0 , vite_ssr_import_1.createVuetifyAdapter) is not a function
TypeError: (0 , vite_ssr_import_1.createDefaults) is not a function
TypeError: (0 , vite_ssr_import_1.someFunctionName) is not a function