mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Use browser default time and number formatting with polyfills if needed (#9481)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
12
test/setup.js
Normal file
12
test/setup.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
process.env.TZ = "Etc/UTC";
|
||||
process.env.IS_TEST = "true";
|
||||
|
||||
const MDI_OUTPUT_DIR = path.resolve(__dirname, "../build/mdi");
|
||||
|
||||
if (!fs.existsSync(MDI_OUTPUT_DIR)) {
|
||||
fs.mkdirSync(MDI_OUTPUT_DIR, { recursive: true });
|
||||
fs.writeFileSync(path.resolve(MDI_OUTPUT_DIR, "iconMetadata.json"), "{}");
|
||||
}
|
||||
Reference in New Issue
Block a user