Skip to content

Commit

Permalink
temporary vuetify jsx fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 4, 2024
1 parent 6356adf commit 16d8280
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/vuetify.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import { runInRepo } from '../utils'
import { RunOptions } from '../types'
import path from 'node:path'
import fs from 'node:fs'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'vuetifyjs/vuetify',
branch: 'master',
beforeBuild: async () => {
const dir = path.resolve(options.workspace, 'vuetify')
const filePath = path.resolve(dir, 'packages/vuetify/src/globals.d.ts')
const file = fs.readFileSync(filePath, 'utf-8')
fs.writeFileSync(filePath, `import 'vue/jsx'\n` + file)
},
build: 'yarn workspace vuetify run build',
// there's also an e2e test script in vuetify,
// but it seems flaky, so I skipped it for now
Expand Down

0 comments on commit 16d8280

Please sign in to comment.