fix(tests): fix the tests failing

vue-shim.d.ts really doesn't like to be changed in any way
This commit is contained in:
MrTimscampi 2020-11-08 23:15:57 +01:00
parent 7585079a14
commit 9259cb68c5
2 changed files with 9 additions and 10 deletions

9
auth-fix.d.ts vendored Normal file
View File

@ -0,0 +1,9 @@
import { Auth } from '@nuxtjs/auth';
// Fix the wonky nuxt-auth types for Vuex stores
declare module 'vuex/types/index' {
// eslint-disable-next-line -- Current TypeScript rules flag S as unused, but Nuxt requires identical types
interface Store<S> {
$auth: Auth;
}
}

10
vue-shims.d.ts vendored
View File

@ -1,15 +1,5 @@
import { Auth } from '@nuxtjs/auth';
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}
// Fix the wonky nuxt-auth types for Vuex stores
declare module 'vuex/types/index' {
// eslint-disable-next-line -- Current TypeScript rules flag S as unused, but Nuxt requires identical types
interface Store<S> {
$auth: Auth;
}
}