-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(devtools): add a way of testing background loggers
- Loading branch information
Showing
16 changed files
with
671 additions
and
20,197 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
15 changes: 15 additions & 0 deletions
15
client/react-native/common/graphql/queries/TestLogBackgroundDebug.js
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { fetchQuery, graphql } from 'react-relay' | ||
|
||
const query = graphql` | ||
query TestLogBackgroundDebugQuery { | ||
TestLogBackgroundDebug(T: true) { | ||
T | ||
} | ||
} | ||
` | ||
|
||
export default context => ({ | ||
graphql: query, | ||
fetch: async (variables = {}) => | ||
(await fetchQuery(context.environment, query, variables)).TestLogBackgroundDebug, | ||
}) |
15 changes: 15 additions & 0 deletions
15
client/react-native/common/graphql/queries/TestLogBackgroundError.js
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { fetchQuery, graphql } from 'react-relay' | ||
|
||
const query = graphql` | ||
query TestLogBackgroundErrorQuery { | ||
TestLogBackgroundError(T: true) { | ||
T | ||
} | ||
} | ||
` | ||
|
||
export default context => ({ | ||
graphql: query, | ||
fetch: async (variables = {}) => | ||
(await fetchQuery(context.environment, query, variables)).TestLogBackgroundError, | ||
}) |
15 changes: 15 additions & 0 deletions
15
client/react-native/common/graphql/queries/TestLogBackgroundWarn.js
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { fetchQuery, graphql } from 'react-relay' | ||
|
||
const query = graphql` | ||
query TestLogBackgroundWarnQuery { | ||
TestLogBackgroundWarn(T: true) { | ||
T | ||
} | ||
} | ||
` | ||
|
||
export default context => ({ | ||
graphql: query, | ||
fetch: async (variables = {}) => | ||
(await fetchQuery(context.environment, query, variables)).TestLogBackgroundWarn, | ||
}) |
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.