Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 23, 2022
1 parent 17d7de3 commit a258618
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "@antfu",
"rules": {
"react/no-unknown-property": "off",
},
"overrides": [
{
"files": "test/**/*.*",
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ yarn-error.log
.idea/
.history/
.vscode
temp
2 changes: 1 addition & 1 deletion playground/TestJsx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const word = 'JSX works!'

export default {
render() {
return <div className={'jsx'}> {word} </div>
return <div class={'jsx'}> {word} </div>
},
}
2 changes: 1 addition & 1 deletion playground/TestJsxSFC.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const word = 'JSX & SFC works!'
export default {
render() {
return <div className={'jsx-sfc'}> {word} </div>
return <div class={'jsx-sfc'}> {word} </div>
},
}
</script>
6 changes: 2 additions & 4 deletions test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ export async function preTest() {
await fs.remove(tempDir)
}
catch (e) {}
await fs.copy(fixtureDir, tempDir, {
filter: file => !/dist|node_modules/.test(file),
})
await fs.copy(fixtureDir, tempDir)
binPath = path.resolve(tempDir, './node_modules/vite/bin/vite.js')

await build()
Expand Down Expand Up @@ -50,7 +48,7 @@ export async function startServer(isBuild: boolean) {
args: ['--no-sandbox', '--disable-setuid-sandbox'],
// Enable if puppeteer can't detect chrome's path on MacOS
// executablePath:
// '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
// '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
})

await new Promise((resolve) => {
Expand Down

0 comments on commit a258618

Please sign in to comment.