mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Add __TESTS__ variable to web app when the tests are running
This commit is contained in:
parent
74ecd36b71
commit
b90c338a1c
@ -122,7 +122,6 @@ function migrateBufferFileToLibrary() {
|
||||
}
|
||||
migrateBufferFileToLibrary()
|
||||
|
||||
|
||||
const Heynote = {
|
||||
platform: platform,
|
||||
defaultFontFamily: "Hack",
|
||||
|
@ -26,7 +26,6 @@ const middleware = () => {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
publicDir: "../public",
|
||||
@ -54,5 +53,6 @@ export default defineConfig({
|
||||
define: {
|
||||
'__APP_VERSION__': JSON.stringify(process.env.npm_package_version),
|
||||
'__GIT_HASH__': JSON.stringify(child.execSync('git rev-parse --short HEAD').toString().trim()),
|
||||
'__TESTS__': process.env.HEYNOTE_TESTS,
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user