Skip to content

Commit

Permalink
Add test for app logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mssalemi committed Oct 3, 2024
1 parent 0b87126 commit 67666ce
Showing 1 changed file with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const USE_POLL_APP_LOGS_RETURN_VALUE = {
fuelConsumed: FUEL_CONSUMED,
errorMessage: 'errorMessage',
errorType: 'errorType',
inputQueryVariablesMetafieldValue: 'inputQueryVariablesMetafieldValue',
inputQueryVariablesMetafieldValue: '{"key":"value"}',
inputQueryVariablesMetafieldNamespace: 'inputQueryVariablesMetafieldNamespace',
inputQueryVariablesMetafieldKey: 'inputQueryVariablesMetafieldKey',
}),
Expand Down Expand Up @@ -186,15 +186,27 @@ describe('Logs', () => {
expect(unstyled(lastFrame!)).toMatchInlineSnapshot(`
"2024-06-18 16:02:04.868 my-store my-function Success export \\"run\\" executed in 0.5124M instructions
test logs
Input Query Variables:
Namespace: inputQueryVariablesMetafieldNamespace
Key: inputQueryVariablesMetafieldKey
{
\\"key\\": \\"value\\"
}
Input (10 bytes):
{
\\"test\\": \\"input\\"
}
{
\\"test\\": \\"input\\"
}
Output (10 bytes):
{
\\"test\\": \\"output\\"
}
{
\\"test\\": \\"output\\"
}
2024-06-18 16:02:04.868 my-store my-function Success network access response from cache
Cache write time: 2023-05-12T15:17:01.000Z
Cache TTL: 300 s
Expand Down

0 comments on commit 67666ce

Please sign in to comment.