forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop console errors and warnings around NodeOutput.test.ts.
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Vue from "vue"; | ||
import { useMagicKeys as wrappedUseMagicKeys } from "@vueuse/core"; | ||
|
||
export function useMagicKeys() { | ||
// a version of useMagicKeys from vueuse/core that doesn't console.error the | ||
// the message [Vue warn]: Vue 2 does not support reactive collection types such as Map or Set. | ||
// in all our tests. This can be dropped after the migration to Vue3. | ||
const oldSlientConfig = Vue.config.silent; | ||
try { | ||
Vue.config.silent = true; | ||
return wrappedUseMagicKeys(); | ||
} finally { | ||
Vue.config.silent = oldSlientConfig; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters