mirror of
https://github.com/enso-org/enso.git
synced 2024-11-30 14:14:12 +03:00
895326d4ed
- Closes #8062 # Important Notes - This PR uses a completely separate implementation from the regexes used for the existing filtering. AFAICT, this is unavoidable, since this needs to retrieve matched text. - I've come across a couple minor bugs related to the Component Browser: - When deleting text (backspacing), the full list of unfiltered entries momentarily reappear because the filtering is reset. - Things like `h.m` match `HTTP_Method` - if this is not intentional, it seems like it might be more difficult to fix, unfortunately. - Note that highlighting (I assume correctly?) *does not* highlight any part of `HTTP_Method`.
20 lines
523 B
TypeScript
20 lines
523 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { configDefaults, defineConfig, mergeConfig } from 'vitest/config'
|
|
import viteConfig from './vite.config'
|
|
|
|
export default mergeConfig(
|
|
viteConfig,
|
|
defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
includeSource: ['./{src,shared,ydoc-server}/**/*.{ts,vue}'],
|
|
exclude: [...configDefaults.exclude, 'e2e/*'],
|
|
root: fileURLToPath(new URL('./', import.meta.url)),
|
|
restoreMocks: true,
|
|
},
|
|
define: {
|
|
RUNNING_VITEST: true,
|
|
},
|
|
}),
|
|
)
|