-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add integration tests for survey and supplementary forms!
- Loading branch information
1 parent
696dfeb
commit ed57ad9
Showing
8 changed files
with
77 additions
and
39 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
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
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
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,9 +1,11 @@ | ||
import { Parse as ParseRN } from 'parse/react-native'; | ||
import { Parse as ParseNode } from 'parse/node'; | ||
import AsyncStorage from '@react-native-async-storage/async-storage'; | ||
import { Parse as ParseNode } from 'parse/node'; | ||
import { Parse as ParseRN } from 'parse/react-native'; | ||
|
||
const client = (isTest) => { | ||
if (isTest) return ParseNode; | ||
ParseRN.setAsyncStorage(AsyncStorage); | ||
return ParseRN; | ||
}; | ||
|
||
export default client = (isTest) => { | ||
if (isTest) return ParseNode | ||
ParseRN.setAsyncStorage(AsyncStorage); | ||
return ParseRN | ||
} | ||
export default client; |
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,5 +1,6 @@ | ||
import { initialize } from "../services/parse/auth"; | ||
import { initialize } from '../services/parse/auth'; | ||
|
||
export function hooks() { | ||
beforeEach(async () => initialize()) | ||
} | ||
// https://medium.com/@phatdev/testing-everything-against-the-real-database-in-nodejs-typescript-application-by-integrating-unit-31b12866d538 | ||
export default function hooks() { | ||
beforeEach(async () => initialize()); | ||
} |