File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed
Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 77devup_model
88* .db
99test- * -revisions
10- test .db
10+ __tests__ / ** / * .db
Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ import {
1111} from '@devup-api/model'
1212import { createSqliteConnection } from '@devup-sql/sqlite'
1313describe . sequential ( 'sqlite' , async ( ) => {
14- if ( existsSync ( './test.db' ) ) {
15- unlinkSync ( './test.db' )
14+ if ( existsSync ( './__tests__/sql/ test.db' ) ) {
15+ unlinkSync ( './__tests__/sql/ test.db' )
1616 }
17- writeFileSync ( './test.db' , '' )
17+ writeFileSync ( './__tests__/sql/ test.db' , '' )
1818
19- if ( existsSync ( './test-index-revisions' ) ) {
20- rmSync ( './test-index-revisions' , { recursive : true } )
19+ if ( existsSync ( './__tests__/sql/ test-index-revisions' ) ) {
20+ rmSync ( './__tests__/sql/ test-index-revisions' , { recursive : true } )
2121 }
2222 const pool = await createSqliteConnection ( {
23- url : 'sqlite:./test.db' ,
24- revisionPath : './test-index-revisions' ,
23+ url : 'sqlite:./__tests__/sql/ test.db' ,
24+ revisionPath : './__tests__/sql/ test-index-revisions' ,
2525 } )
2626 it . each ( [
2727 [ 'SELECT 1 as value' , { value : 1 } ] ,
Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ import {
1111} from '@devup-api/model'
1212import { createSqliteConnection } from '@devup-sql/sqlite'
1313describe . sequential ( 'sqlite' , async ( ) => {
14- if ( existsSync ( './migrate.db' ) ) {
15- unlinkSync ( './migrate.db' )
14+ if ( existsSync ( './__tests__/sql/ migrate.db' ) ) {
15+ unlinkSync ( './__tests__/sql/ migrate.db' )
1616 }
17- writeFileSync ( './migrate.db' , '' )
18- if ( existsSync ( './test-migrate-revisions' ) ) {
19- rmSync ( './test-migrate-revisions' , { recursive : true } )
17+ writeFileSync ( './__tests__/sql/ migrate.db' , '' )
18+ if ( existsSync ( './__tests__/sql/ test-migrate-revisions' ) ) {
19+ rmSync ( './__tests__/sql/ test-migrate-revisions' , { recursive : true } )
2020 }
2121 const pool = await createSqliteConnection ( {
22- url : 'sqlite:./migrate.db' ,
23- revisionPath : './test-migrate-revisions' ,
22+ url : 'sqlite:./__tests__/sql/ migrate.db' ,
23+ revisionPath : './__tests__/sql/ test-migrate-revisions' ,
2424 } )
2525 describe ( 'migrate' , ( ) => {
2626 it ( 'test' , async ( ) => {
You can’t perform that action at this time.
0 commit comments