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.
18 lines
450 B
18 lines
450 B
import { resetDatabaseAndImportDataFromPath } from '../utils/dts-import';
|
|
|
|
const importData = async () => {
|
|
const args = process.argv.slice(2);
|
|
const filePath = args[0];
|
|
|
|
if (!filePath) {
|
|
console.error('Please provide the name of the file you want to import from tests/e2e/data');
|
|
process.exit(1);
|
|
}
|
|
|
|
await resetDatabaseAndImportDataFromPath(filePath);
|
|
console.log('Data transfer succeeded');
|
|
process.exit(0);
|
|
};
|
|
|
|
importData();
|