11import type { Repository } from 'typeorm' ;
22import { DataSource } from 'typeorm' ;
3- import { beforeAll , beforeEach , it , describe } from './MochaRNAdapter' ;
3+ import { beforeAll , it , describe , beforeEachAsync } from './MochaRNAdapter' ;
44import { typeORMDriver } from 'react-native-nitro-sqlite' ;
55import { User } from '../model/User' ;
66import { Book } from '../model/Book' ;
@@ -14,7 +14,7 @@ let bookRepository: Repository<Book>;
1414
1515export function registerTypeORMTests ( ) {
1616 describe ( 'Typeorm tests' , ( ) => {
17- beforeAll ( ( done : any ) => {
17+ beforeAll ( done => {
1818 dataSource = new DataSource ( {
1919 type : 'react-native' ,
2020 database : 'typeormDb.sqlite' ,
@@ -37,12 +37,12 @@ export function registerTypeORMTests() {
3737 } ) ;
3838 } ) ;
3939
40- beforeEach ( async ( ) => {
40+ beforeEachAsync ( async ( ) => {
4141 await userRepository . clear ( ) ;
4242 await bookRepository . clear ( ) ;
4343 } ) ;
4444
45- it ( 'basic test' , async ( ) => {
45+ it ( 'basic test' , ( ) => {
4646 expect ( 1 ) . to . equal ( 2 ) ;
4747 } ) ;
4848 } ) ;
0 commit comments