Skip to content
Snippets Groups Projects
Commit 297d5a1d authored by Yannis Barlas's avatar Yannis Barlas
Browse files

fix(*): running tests

parent 23ae9a61
No related branches found
No related tags found
2 merge requests!52Docx,!17Graphql api
/**
* Only used by jest, not part of the distributed package
*/
const { deferConfig } = require('config/defer')
const path = require('path')
......
......@@ -36,12 +36,13 @@ services:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add cokoServer ${S3_PROTOCOL:-http}://${S3_HOST:-filehosting}:${S3_PORT:-9000} ${MINIO_ROOT_USER:-admin} ${MINIO_ROOT_PASSWORD:-superSecretAdminPassword};
/usr/bin/mc admin user add cokoServer/ ${S3_ACCESS_KEY_ID:-cokoServerUser} ${S3_SECRET_ACCESS_KEY:-superSecretUserPassword};
/usr/bin/mc admin user enable cokoServer/ ${S3_ACCESS_KEY_ID:-cokoServerUser};
/usr/bin/mc mb cokoServer/${S3_BUCKET:-uploads};
/usr/bin/mc admin policy set cokoServer/ readwrite user=${S3_ACCESS_KEY_ID:-cokoServerUser};
exit 0;
/usr/bin/mc config host add cokoServer ${S3_PROTOCOL:-http}://${S3_HOST:-filehosting}:9000 ${MINIO_ROOT_USER:-admin} ${MINIO_ROOT_PASSWORD:-superSecretAdminPassword};
/usr/bin/mc admin user add cokoServer/ ${S3_ACCESS_KEY_ID:-cokoServerUser} ${S3_SECRET_ACCESS_KEY:-superSecretUserPassword};
/usr/bin/mc admin user enable cokoServer/ ${S3_ACCESS_KEY_ID:-cokoServerUser};
/usr/bin/mc mb cokoServer/${S3_BUCKET:-uploads};
/usr/bin/mc admin policy set cokoServer/ readwrite user=${S3_ACCESS_KEY_ID:-cokoServerUser};
exit 0;
"
volumes:
minio_storage:
module.exports = {
collectCoverage: false,
collectCoverageFrom: [
'<rootDir>/src/models/**/*.model.js',
'<rootDir>/src/models/**/*.controller.js',
'<rootDir>/src/models/useTransaction.js',
'!<rootDir>/src/models/__tests__/helpers/**',
],
// collectCoverageFrom: [
// '<rootDir>/src/models/**/*.model.js',
// '<rootDir>/src/models/**/*.controller.js',
// '<rootDir>/src/models/useTransaction.js',
// '!<rootDir>/src/models/__tests__/helpers/**',
// ],
coverageDirectory: '<rootDir>/coverage',
projects: [
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment