forked from roxiness/routify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.thcrc.js
41 lines (32 loc) · 1.04 KB
/
.thcrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
files: './test/**/*.spec.js',
app: './example',
// if the pages folder gets deleted, then our file watcher (for pages regen)
// will stop working
resetGlob: ['*', '!pages', 'pages/*'],
fixtures: {
'main.js': `
import App from './App.svelte'
const target = document.body
const app = new App({ target })
export default app
if (import.meta.hot) {
import.meta.hot.dispose(() => { app.$destroy() })
import.meta.hot.accept()
}
`,
'App.svelte': `
<script>
import { Router } from '@sveltech/routify'
import { routes } from './.tmp/routes.js'
</script>
<Router {routes} />
`,
},
// use FS (instead of RAM mock, that doesn't work currently with Routify)
fs: true,
// Puppeteer's Chromium's user data dir -- useful to remember settings,
// position, etc. of test browser (NOTE comment out & commit if not working
// in Windows -- I'll add some support for local ignored config one day)
userDataDir: '~/.svhs-pptr',
}