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
2 years ago
|
import 'mocha';
|
||
|
import restTests from './rest/index.test';
|
||
2 years ago
|
import modelTests from './model/index.test';
|
||
2 years ago
|
import TestDbMngr from './TestDbMngr'
|
||
2 years ago
|
import dotenv from 'dotenv';
|
||
2 years ago
|
|
||
|
process.env.NODE_ENV = 'test';
|
||
2 years ago
|
process.env.TEST = 'true';
|
||
2 years ago
|
process.env.NC_DISABLE_CACHE = 'true';
|
||
2 years ago
|
process.env.NC_DISABLE_TELE = 'true';
|
||
2 years ago
|
|
||
2 years ago
|
// Load environment variables from .env file
|
||
|
dotenv.config({
|
||
|
path: __dirname + '/.env'
|
||
|
});
|
||
2 years ago
|
|
||
|
(async function() {
|
||
2 years ago
|
await TestDbMngr.init();
|
||
|
|
||
2 years ago
|
modelTests();
|
||
2 years ago
|
restTests();
|
||
|
|
||
|
run();
|
||
|
})();
|