-
Notifications
You must be signed in to change notification settings - Fork 0
fix: preserve PDF fallback text and load live-test env #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
068f019
8f46a4c
f3380b0
eca5af9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,15 +2,19 @@ | |
| import { spawnSync } from "node:child_process"; | ||
| import path from "node:path"; | ||
| import { fileURLToPath } from "node:url"; | ||
| import nextEnv from "@next/env"; | ||
| import { childProcessExitCode } from "./child-process-result.mjs"; | ||
| import { requireProviderTestPermission } from "./test-environment.mjs"; | ||
| import { acquireHeavyRunLock } from "./test-run-lock.mjs"; | ||
|
|
||
| const projectRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); | ||
| const vitestBin = path.join(projectRoot, "node_modules", "vitest", "vitest.mjs"); | ||
| const { loadEnvConfig } = nextEnv; | ||
| const providerTestPermission = process.env.ALLOW_PROVIDER_TESTS; | ||
| loadEnvConfig(projectRoot); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
|
|
||
| try { | ||
| requireProviderTestPermission(); | ||
| requireProviderTestPermission({ ALLOW_PROVIDER_TESTS: providerTestPermission }); | ||
| } catch (error) { | ||
| console.error(error instanceof Error ? error.message : String(error)); | ||
| process.exit(1); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.