Skip to content

Commit b90c338

Browse files
committed
Add __TESTS__ variable to web app when the tests are running
1 parent 74ecd36 commit b90c338

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

webapp/bridge.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ function migrateBufferFileToLibrary() {
122122
}
123123
migrateBufferFileToLibrary()
124124

125-
126125
const Heynote = {
127126
platform: platform,
128127
defaultFontFamily: "Hack",

webapp/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const middleware = () => {
2626
}
2727
}
2828

29-
3029
// https://vitejs.dev/config/
3130
export default defineConfig({
3231
publicDir: "../public",
@@ -54,5 +53,6 @@ export default defineConfig({
5453
define: {
5554
'__APP_VERSION__': JSON.stringify(process.env.npm_package_version),
5655
'__GIT_HASH__': JSON.stringify(child.execSync('git rev-parse --short HEAD').toString().trim()),
56+
'__TESTS__': process.env.HEYNOTE_TESTS,
5757
},
5858
})

0 commit comments

Comments
 (0)