-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
/* External Imports */ | ||
import path = require('path') | ||
|
||
const rootPath = __dirname | ||
const dbRootPath = path.join(__dirname, 'db') | ||
|
||
export * from './src/interfaces' | ||
export { rootPath, dbRootPath } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './db.interface' | ||
export * from './key.interface' | ||
export * from './range-db.interface' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
import fs = require('fs') | ||
import path = require('path') | ||
import chai = require('chai') | ||
import chaiAsPromised = require('chai-as-promised') | ||
import { rootPath } from '../index' | ||
|
||
const should = chai.should() | ||
chai.use(chaiAsPromised) | ||
const testArtifactsDir = path.join(rootPath, 'test', 'artifacts.test.tmp') | ||
const testRootPath = path.join(testArtifactsDir, (+new Date()).toString()) | ||
const dbRootPath = path.join(testRootPath, 'db') | ||
|
||
export { should } | ||
// If these directories don't exist, create them. | ||
fs.mkdirSync(testArtifactsDir, { recursive: true }) | ||
fs.mkdirSync(testRootPath, { recursive: true }) | ||
fs.mkdirSync(dbRootPath, { recursive: true }) | ||
|
||
// Exports | ||
export { should, dbRootPath } | ||
export { testRootPath as rootPath } |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.