Skip to content

Commit

Permalink
add on backend
Browse files Browse the repository at this point in the history
Signed-off-by: San Nguyen <[email protected]>
  • Loading branch information
sandangel committed Jan 20, 2025
1 parent f8d72cf commit aac0f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions backend/chainlit/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def chainlit_run(
os.environ["OPENAI_API_KEY"] = "sk-FAKE-OPENAI-API-KEY"
# This is required for authentication tests
os.environ["CHAINLIT_AUTH_SECRET"] = "SUPER_SECRET" # nosec B105
os.environ["CHAINLIT_COOKIE_SAMESITE"] = "none"
else:
trace_event("chainlit run")

Expand Down
4 changes: 1 addition & 3 deletions cypress/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ export async function runTests(matchName: string) {
// Recording the cypress run is time consuming. Disabled by default.
// const recordOptions = ` --record --key ${process.env.CYPRESS_RECORD_KEY} `;
return runCommand(
`pnpm exec cypress run --record false ${
process.env.CYPRESS_OPTIONS || ''
`pnpm exec cypress run --record false ${process.env.CYPRESS_OPTIONS || ''
} --spec "cypress/e2e/${matchName}/spec.cy.ts"`
);
}

export function runCommand(command: string, cwd = ROOT) {
process.env.CHAINLIT_COOKIE_SAMESITE = 'none';
return execSync(command, {
encoding: 'utf-8',
cwd,
Expand Down

0 comments on commit aac0f60

Please sign in to comment.