mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-22 11:02:11 +03:00
fix: eslint.config for testing (#4704)
This commit is contained in:
parent
cd84afde3e
commit
88e791c307
@ -1,6 +0,0 @@
|
||||
describe('GitButler', () => {
|
||||
it('should have the root element', async () => {
|
||||
const element = await $('body.text-base');
|
||||
await expect(element).toExist();
|
||||
});
|
||||
});
|
@ -1,5 +1,5 @@
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { browser } from '@wdio/globals';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
|
||||
const DEFAULT_TIMEOUT = 5_000;
|
||||
|
||||
|
@ -16,6 +16,20 @@ export default tsEslint.config(
|
||||
...eslintPluginSvelte.configs['flat/recommended'],
|
||||
eslintConfigPrettier,
|
||||
...eslintPluginSvelte.configs['flat/prettier'],
|
||||
{
|
||||
files: ['apps/desktop/e2e/**'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2021,
|
||||
sourceType: 'module',
|
||||
globals: {
|
||||
...globals.node,
|
||||
...globals.browser,
|
||||
...globals.mocha,
|
||||
...globals.chai,
|
||||
$: false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['**/*.svelte'],
|
||||
languageOptions: {
|
||||
@ -50,7 +64,6 @@ export default tsEslint.config(
|
||||
'**/dist',
|
||||
'.svelte-kit',
|
||||
'**/package',
|
||||
'**/e2e',
|
||||
'**/.env',
|
||||
'**/.env.*',
|
||||
'!**/.env.example',
|
||||
@ -61,7 +74,6 @@ export default tsEslint.config(
|
||||
'.vscode',
|
||||
'src-tauri',
|
||||
'**/eslint.config.js',
|
||||
'**/eslint.config.mjs',
|
||||
'**/svelte.config.js',
|
||||
'**/.pnpm-store',
|
||||
'**/vite.config.ts.timestamp-*',
|
Loading…
Reference in New Issue
Block a user