Skip to content

Commit

Permalink
Merge pull request #5 from ErKeLost/fix/test_result
Browse files Browse the repository at this point in the history
fix: test error
  • Loading branch information
phoenix-ru authored Oct 18, 2023
2 parents 995c2cd + 49c3eeb commit 1cac260
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
item2,
index
])
})
}, null, 2)
]),
false ? (_openBlock(), _createElementBlock(_Fragment, null, [
_createTextVNode(\\" this is a v-if template \\")
Expand All @@ -137,9 +137,11 @@ export default {
}
]),
textContent: _ctx.foo + _ctx.bar
})
}, null, 4)
])
})), [
}, 8, [
\\"test-bound\\"
])), [
[
_directive_test_directive,
foo - bar,
Expand Down
3 changes: 1 addition & 2 deletions crates/fervid_napi/__tests__/compileTemplate.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { test, expect } from 'vitest'
import { readFileSync } from 'node:fs'
import { join } from 'node:path'
import { cwd } from 'node:process'

import { compileSync } from '../index'

const input = readFileSync(join(cwd(), '../crates/fervid/benches/fixtures/input.vue'), {
const input = readFileSync(join(__dirname, '../../fervid/benches/fixtures/input.vue'), {
encoding: 'utf-8',
})

Expand Down
14 changes: 14 additions & 0 deletions crates/fervid_napi/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
include: ['**/*.spec.ts'],
coverage: {
reporter: ['json'],
},
environment: 'node',
deps: {
interopDefault: false,
},
},
})

0 comments on commit 1cac260

Please sign in to comment.