Files
directus/package.json
Jay Cammarano ef9b30c0e1 Integration tests set up and examples (#10419)
* tsconfig loosened to match api

* integration test folder and script

* .env mock isn't needed

* mock-env, locations of tests

* I was wrong.

* Updated progress

* schemas => getSchema(), exported getColumnPreprocessor()

* change imports to allow build

* add MockClient as DB Client (should mock getDBClient())

* move authservice into. not used elsewhere

* test passing

* remove unneeded test for this PR

* removed unneded fields from rawItem

* formatting

* createOne test passing

* typo

* removed int specific jest.config

* use systemSchema over getSchema()

* this.knex over getDatabase()

* mock getDatabaseClient

* removed unused mock-env

* formatting

* removed unused collections from schema

* response => responseOnce

* more direct

* unused var

* more tests please!

* test for: createOne no permissions

* removed broken test for now

* clean up

* readOne tests what does into db and returned

* added bindings check

* added into db sql check

* moved tests outside src

* changed ts config

* cli test location changed

* removed looking for tests in src

* readding it for e2e tests? Seems fishy

* Integration tests for ItemsService user tables (#11208)

* renamed ItemsService test to match src file name

* add user table schema

* system/user tables use .each, formatting needed

* format system and user better in title

* tables/table=> schemas/schema

* filter _eq test passing

* comment for later and formatting

* everything in it's right place

* future proofing as more fields are added

* removed duplicate test

* formatting

* readMany() filter: _or

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>

* added knex check before getDatabase()

* Move util test to tests folder

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-24 19:55:08 +00:00

84 lines
2.4 KiB
JSON

{
"name": "directus-monorepo",
"private": true,
"workspaces": [
"./app",
"./api",
"./docs",
"./packages/*"
],
"scripts": {
"lint": "npm-run-all --parallel --continue-on-error lint:*",
"lint:eslint": "eslint .",
"lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --custom-syntax postcss-html",
"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/e2e/jest.config.js",
"test:e2e:watch": "npm run test:e2e -- --watch",
"posttest:e2e:watch": "ts-node --project ./tests/tsconfig.json --transpile-only ./tests/e2e/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": ">=7.0.0"
},
"devDependencies": {
"@types/dockerode": "3.3.0",
"@types/faker": "5.5.9",
"@types/jest": "27.0.3",
"@types/listr": "0.14.4",
"@types/node": "16.11.9",
"@types/supertest": "2.0.11",
"@typescript-eslint/eslint-plugin": "5.4.0",
"@typescript-eslint/parser": "5.4.0",
"axios": "0.24.0",
"dockerode": "3.3.1",
"eslint": "8.3.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-vue": "7.20.0",
"faker": "5.5.3",
"globby": "11.0.4",
"jest": "27.3.1",
"knex": "0.95.15",
"lerna": "4.0.0",
"lint-staged": "11.2.6",
"listr": "0.14.3",
"mysql": "2.18.1",
"nanoid": "3.1.30",
"npm-run-all": "4.1.5",
"oracledb": "5.3.0",
"pg": "8.7.1",
"prettier": "2.4.1",
"simple-git-hooks": "2.7.0",
"sqlite3": "5.0.2",
"stylelint": "14.1.0",
"stylelint-config-prettier": "9.0.3",
"stylelint-config-rational-order": "0.1.2",
"stylelint-config-standard": "23.0.0",
"stylelint-order": "5.0.0",
"stylelint-scss": "4.0.0",
"supertest": "6.1.6",
"tedious": "13.2.0",
"ts-jest": "27.0.7",
"ts-node": "10.4.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,ts,vue}": "eslint --fix",
"*.{md,yaml}": "prettier --write",
"*.{css,scss,vue}": "stylelint --fix --custom-syntax postcss-html"
},
"volta": {
"node": "16.13.2",
"npm": "8.1.4"
}
}