package aws import ( "os" "testing" ) // fakePlaywrightNodeEnv makes the test binary act as the Node.js runtime of a fake Playwright // driver: invoked as ` cli.js --version`, it prints "Version " and exits 0. // Tests point PLAYWRIGHT_NODEJS_PATH at os.Executable() so playwright-go's driver checks run // without a real Node.js. const fakePlaywrightNodeEnv = "_ATMOS_TEST_FAKE_PLAYWRIGHT_NODE_VERSION" func TestMain(m *testing.M) { if version := os.Getenv(fakePlaywrightNodeEnv); version != "" { _, _ = os.Stdout.WriteString("Version " + version + "\n") os.Exit(0) } os.Exit(m.Run()) }