mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 11:59:08 +01:00
fix test
This commit is contained in:
parent
0abd256f44
commit
dcfe8738a9
1 changed files with 3 additions and 1 deletions
|
@ -178,7 +178,9 @@ const emit = defineEmits<{
|
|||
}>();
|
||||
|
||||
// テストの場合は全インタラクションをスキップする
|
||||
const isTest = (import.meta.env.MODE === 'test');
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-expect-error
|
||||
const isTest = (import.meta.env.MODE === 'test' || window.Cypress != null);
|
||||
|
||||
type ComponentDef = {
|
||||
component: Component;
|
||||
|
|
Loading…
Reference in a new issue