Skip to content

Commit

Permalink
Add __TESTS__ variable to web app when the tests are running
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Oct 29, 2024
1 parent 74ecd36 commit b90c338
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion webapp/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ function migrateBufferFileToLibrary() {
}
migrateBufferFileToLibrary()


const Heynote = {
platform: platform,
defaultFontFamily: "Hack",
Expand Down
2 changes: 1 addition & 1 deletion webapp/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const middleware = () => {
}
}


// https://vitejs.dev/config/
export default defineConfig({
publicDir: "../public",
Expand Down Expand Up @@ -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,
},
})

0 comments on commit b90c338

Please sign in to comment.