Skip to content

Commit 7c03fc9

Browse files
authored
Merge pull request #37 from maikmb/feature/change-test-folders
feat(test-structure): changes tests folder structure
2 parents f16a26a + 430beae commit 7c03fc9

35 files changed

+27
-26
lines changed

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "Domain entities javascript library.",
55
"main": "./src/herbs2knex.js",
66
"scripts": {
7-
"test": "mocha --timeout 999999 --colors --recursive ./test",
8-
"testdb-pg": "mocha --timeout 999999 --colors --exit --recursive ./testdb/pg",
9-
"testdb-mssql": "mocha --timeout 999999 --colors --exit --recursive ./testdb/mssql",
10-
"testdb-mysql": "mocha --timeout 999999 --colors --exit --recursive ./testdb/mysql",
7+
"test": "mocha --timeout 999999 --colors --recursive ./test/unit",
8+
"test:integration:pg": "mocha --timeout 999999 --colors --exit --recursive ./test/integration/pg",
9+
"test:integration:mssql": "mocha --timeout 999999 --colors --exit --recursive ./test/integration/mssql",
10+
"test:integration:mysql": "mocha --timeout 999999 --colors --exit --recursive ./test/integration/mysql",
1111
"coverage-report": "nyc --reporter=html --reporter=text mocha --recursive ./test --timeout 10000",
1212
"coverage": "nyc --reporter=text mocha --recursive ./test --timeout 10000",
1313
"semantic-release": "semantic-release",
@@ -50,9 +50,9 @@
5050
"@semantic-release/github": "^7.2.3",
5151
"@semantic-release/npm": "^7.1.3",
5252
"@semantic-release/release-notes-generator": "^9.0.3",
53+
"bluebird": "^3.7.2",
5354
"cz-conventional-changelog": "^3.3.0",
5455
"dotenv": "^10.0.0",
55-
"bluebird": "^3.7.2",
5656
"eslint": "^8.0.0",
5757
"eslint-config-prettier": "^8.3.0",
5858
"eslint-config-standard": "^16.0.3",
@@ -61,14 +61,15 @@
6161
"eslint-plugin-prettier": "^4.0.0",
6262
"eslint-plugin-promise": "^5.1.0",
6363
"eslint-plugin-standard": "^4.1.0",
64+
"lodash": "^4.17.21",
6465
"mocha": "^9.0.1",
66+
"mssql": "^7.2.1",
67+
"mysql2": "^2.3.2",
6568
"nyc": "^15.1.0",
69+
"pg": "^8.7.1",
6670
"prettier": "^2.3.1",
6771
"semantic-release": "^17.4.4",
68-
"pg": "^8.7.1",
69-
"tedious": "^13.1.0",
70-
"mssql": "^7.2.1",
71-
"mysql2": "^2.3.2"
72+
"tedious": "^13.1.0"
7273
},
7374
"peerDependencies": {
7475
"pg": "^8.7.1",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

testdb/mssql/insert.js renamed to test/integration/mssql/insert.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { entity, field } = require('@herbsjs/gotu')
2-
const Repository = require('../../src/repository')
2+
const Repository = require('../../../src/repository')
33
const db = require('./db')
44
const connection = require('../connection')
55
const assert = require('assert')
File renamed without changes.

0 commit comments

Comments
 (0)