mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 21:44:25 -07:00
Fix tests to wrap all calls changing the UI with act. (#12268)
This commit is contained in:
@@ -12,13 +12,16 @@ import * as path from 'node:path';
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
conditions: ['test'],
|
||||
},
|
||||
test: {
|
||||
include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)', 'config.test.ts'],
|
||||
include: ['**/*.{test,spec}.{js,ts,jsx,tsx}', 'config.test.ts'],
|
||||
exclude: ['**/node_modules/**', '**/dist/**', '**/cypress/**'],
|
||||
environment: 'node',
|
||||
globals: true,
|
||||
reporters: ['default', 'junit'],
|
||||
silent: true,
|
||||
|
||||
outputFile: {
|
||||
junit: 'junit.xml',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user