mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
496 B
24 lines
496 B
import 'mocha'; |
|
import restTests from './rest/index.test'; |
|
import modelTests from './model/index.test'; |
|
import TestDbMngr from './TestDbMngr' |
|
import dotenv from 'dotenv'; |
|
|
|
process.env.NODE_ENV = 'test'; |
|
process.env.TEST = 'true'; |
|
process.env.NC_DISABLE_CACHE = 'true'; |
|
process.env.NC_DISABLE_TELE = 'true'; |
|
|
|
// Load environment variables from .env file |
|
dotenv.config({ |
|
path: __dirname + '/.env' |
|
}); |
|
|
|
(async function() { |
|
await TestDbMngr.init(); |
|
|
|
modelTests(); |
|
restTests(); |
|
|
|
run(); |
|
})(); |