- I defined in
global.d.ts
file as the following
declare global {
var some: string
}
- I assigned the value in
global.setup.ts
as the following
globalThis.some="fff"
- I referred it in test file as the following
console.log(globalThis.some)
And I did not see fff
in console log, and neither it reports any error.
Any clue?
expecting seeing fff
in console log.
Is
global.setup.ts
being run