Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand",
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=319 --cache --cache-location=node_modules/.cache/eslint",
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=316 --cache --cache-location=node_modules/.cache/eslint",
"lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh",
"lint-watch": "npx eslint-watch --watch --changed",
"shellcheck": "./scripts/shellCheck.sh",
Expand Down
6 changes: 4 additions & 2 deletions src/libs/E2E/actions/e2eLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const e2eUserCredentials = {
export default function (): Promise<boolean> {
const waitForBeginSignInToFinish = (): Promise<void> =>
new Promise((resolve) => {
const id = Onyx.connect({
// We opted for `connectWithoutView` here as this is being used for mocking data for E2E flow.
const id = Onyx.connectWithoutView({
Comment thread
shubham1206agra marked this conversation as resolved.
key: ONYXKEYS.CREDENTIALS,
callback: (credentials) => {
// beginSignUp writes to credentials.login once the API call is complete
Expand All @@ -43,7 +44,8 @@ export default function (): Promise<boolean> {

// Subscribe to auth token, to check if we are authenticated
return new Promise((resolve, reject) => {
const connection = Onyx.connect({
// We opted for `connectWithoutView` here as this is being used for mocking data for E2E flow.
const connection = Onyx.connectWithoutView({
Comment thread
shubham1206agra marked this conversation as resolved.
key: ONYXKEYS.SESSION,
callback: (session) => {
if (session?.authToken == null || session.authToken.length === 0) {
Expand Down
Loading