2024-03-18 01:49:55 +03:00
|
|
|
import { setPlatform } from '../../packages/core/src/platform.js'
|
|
|
|
|
|
|
|
// @ts-expect-error no .env here
|
|
|
|
const TEST_ENV = import.meta.env.TEST_ENV
|
2024-04-25 04:47:33 +03:00
|
|
|
if (TEST_ENV === 'browser' || TEST_ENV === 'deno') {
|
2024-03-18 01:49:55 +03:00
|
|
|
setPlatform(new (await import('../../packages/web/src/platform.js')).WebPlatform())
|
|
|
|
} else {
|
2024-03-23 18:13:31 +03:00
|
|
|
setPlatform(new (await import('../../packages/node/src/common-internals-node/platform.js')).NodePlatform())
|
2024-03-18 01:49:55 +03:00
|
|
|
}
|