Files
directus/package.json
ian 8d1966ab04 Blackbox testing (#13200)
* Add black box tests

* Revert docker compose file

* Update workflow

* Try use workflow from dev repo

* Increase seedDB() timeout

* Disable other checks for now

* Change DB sequence

* Update jest moduleNameMapper

* Update workflow's docker-compose.yml path

* Slice array first

* Remove differentiation of status code

* Delete field only after foreign key constraints are removed

* Add checks for different types of primary key

* Test global query filter for all field types

* Increase timeout for m2o seeding

* Add case insensitive string operators

* Update filter check to run on relational fields

* Enable time field checks

* Add seeded random and fix relational seeding

* Add casting for integer and bigInteger

* Minor fixes

* Reduce bigInt values

* Separate seeding of DB structure from values

* Add primaryKey seeding function

* Use automatic IDs except for string pk

* Try fix ci

* Update package-lock.json

* Update common.test for concealed user tokens

* Use dynamic field type for m2o.test relational fields

* Temporary disable missing nicontains for string type

* Add support for alias type filtering

* Fix relational filter operator checks

* Add initial o2m test

* Remove integer pk limit

* Add empty checks for string and uuid null

* Limit generated integer value to 4 bytes

* Patch timezone tests for MSSQL

* Remove sample query filter test

* Fix timezone test for sqlite

* Fix MSSQL uuids

* Fix MSSQL timestamp inaccuracy

* Cast datetime schema to milliseconds for comparison

* Fix MySQL / Maria timestamp inaccuracy

* Fix MySQL / Maria between operator inconsistency for float type

* Fix missing time datatype in Oracle

* Skip filter testing on Oracle

* Enable o2m filter tests for other collections

* Run tests only on SQLite for PRs unless the Full Tests label exists

* Try fix actions

* Refactor github actions

* Update tests flow setup to use getURL()

* Start postgres docker

* Reinstate package-lock

* Fix geometry test

* Remove .gitkeep files

* Add todo.md

* Rename black box to blackbox

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-15 15:25:32 +00:00

84 lines
2.4 KiB
JSON

{
"name": "directus-monorepo",
"private": true,
"workspaces": [
"./app",
"./api",
"./packages/*"
],
"scripts": {
"lint": "npm-run-all --parallel --continue-on-error lint:*",
"lint:eslint": "eslint .",
"format": "prettier --write \"**/*.{js,ts,vue,md,yaml}\"",
"dev": "lerna run dev --stream --parallel",
"build": "lerna run build",
"build:api": "lerna run build --ignore @directus/app",
"pack": "node docker/pack",
"release": "lerna version --force-publish --exact",
"test": "lerna run test",
"test:e2e": "jest tests -c tests/jest.config.js",
"test:e2e:watch": "npm run test:e2e -- --watch",
"posttest:e2e:watch": "ts-node --project ./tests/tsconfig.json --transpile-only ./tests/setup/teardown.ts",
"test:blackbox": "jest tests -c tests-blackbox/jest.config.js",
"test:blackbox:watch": "npm run test:blackbox -- --watch",
"posttest:blackbox:watch": "ts-node --project ./-blackbox/tsconfig.json --transpile-only ./-blackbox/setup/teardown.ts",
"cli": "cross-env NODE_ENV=development SERVE_APP=false DOTENV_CONFIG_PATH=api/.env ts-node -r dotenv/config --script-mode --transpile-only api/src/cli/run.ts"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.5.0"
},
"devDependencies": {
"@directus/app": "^9.13.0",
"@types/dockerode": "3.3.0",
"@types/jest": "27.4.1",
"@types/listr": "0.14.4",
"@types/node": "16.11.9",
"@types/seedrandom": "^3.0.2",
"@types/supertest": "2.0.11",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"axios": "0.24.0",
"dockerode": "3.3.1",
"eslint": "^8.17.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-vue": "9.1.0",
"globby": "11.0.4",
"jest": "27.5.1",
"knex": "2.1.0",
"lerna": "4.0.0",
"lint-staged": "11.2.6",
"listr": "0.14.3",
"markdown-it-anchor": "^8.6.4",
"markdown-it-container": "^3.0.0",
"mysql": "2.18.1",
"nanoid": "3.1.30",
"npm-run-all": "4.1.5",
"pg": "8.7.1",
"postcss": "^8.4.14",
"prettier": "2.6.2",
"seedrandom": "^3.0.5",
"simple-git-hooks": "2.8.0",
"sqlite3": "5.0.6",
"supertest": "6.1.6",
"tedious": "13.2.0",
"ts-jest": "27.1.3",
"ts-node": "10.4.0"
},
"optionalDependencies": {
"oracledb": "5.3.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,ts,vue}": "eslint --fix",
"*.{md,yaml}": "prettier --write"
},
"volta": {
"node": "16.15.0",
"npm": "8.10.0"
}
}