Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyuujin committed Nov 18, 2023
1 parent 71a2df2 commit fc2a42d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/composables/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ const useAuth = () => {
? 'https://vuefes.jp/2023'
: 'https://localhost:3000'
: isProd
? 'https://vuefes.jp/2023/register'
: 'http://localhost:3000/register'
? 'https://vuefes.jp/2023/register'
: 'http://localhost:3000/register'
const { error } = await supabase.auth.signInWithOAuth({
provider,
options: {
Expand Down
2 changes: 2 additions & 0 deletions app/types/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import all from '~/assets/locale/all'
type AllSchema = typeof all

declare module 'vue-i18n' {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export type DefineLocaleMessage = AllSchema
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@typescript-eslint/eslint-plugin": "6.8.0",
"@typescript-eslint/parser": "6.8.0",
"consola": "3.1.0",
"cypress": "13.2.0",
"cypress": "13.5.1",
"eslint": "8.54.0",
"eslint-plugin-vue": "9.18.1",
"eslint-plugin-vuejs-accessibility": "2.2.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/vitest/sample.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export function add(...args: number[]) {
}

// in-source test suites
if (import.meta.vitest) {
const { it, expect } = import.meta.vitest
if (import.meta.env.vitest) {
const { it, expect } = import.meta.env.vitest
it('add', () => {
expect(add()).toBe(0)
expect(add(1)).toBe(1)
Expand Down
8 changes: 8 additions & 0 deletions tests/vitest/types/cypress.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare namespace Cypress {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Chainable<Subject = any> {
checkPageIdle: (selector: string) => Chainable<JQuery<HTMLElement>>
debuglog: (selector: string) => Chainable<JQuery<HTMLElement>>
debugnode: (selector: string) => Chainable<JQuery<HTMLElement>>
}
}

0 comments on commit fc2a42d

Please sign in to comment.