-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: <:idle> state for Requests (#9530)
- Loading branch information
Showing
17 changed files
with
426 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
export function getEnv() { | ||
const { EMBER_ENV, IS_TESTING, EMBER_CLI_TEST_COMMAND, NODE_ENV } = process.env; | ||
const { EMBER_ENV, IS_TESTING, EMBER_CLI_TEST_COMMAND, NODE_ENV, CI, IS_RECORDING } = process.env; | ||
const PRODUCTION = EMBER_ENV === 'production' || (!EMBER_ENV && NODE_ENV === 'production'); | ||
const DEBUG = !PRODUCTION; | ||
const TESTING = DEBUG || Boolean(EMBER_ENV === 'test' || IS_TESTING || EMBER_CLI_TEST_COMMAND); | ||
const SHOULD_RECORD = Boolean(!CI || IS_RECORDING); | ||
|
||
return { | ||
TESTING, | ||
PRODUCTION, | ||
DEBUG, | ||
IS_RECORDING: Boolean(IS_RECORDING), | ||
IS_CI: Boolean(CI), | ||
SHOULD_RECORD, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export const DEBUG: boolean = true; | ||
export const PRODUCTION: boolean = true; | ||
export const TESTING: boolean = true; | ||
export const IS_RECORDING: boolean = true; | ||
export const IS_CI: boolean = true; | ||
export const SHOULD_RECORD: boolean = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file removed
BIN
-71 Bytes
tests/warp-drive__ember/.mock-cache/9ef82bd7/GET-1-users/1/res.body.br
Binary file not shown.
Oops, something went wrong.