diff --git a/test/resources/bookshop-graphql/package.json b/test/resources/bookshop-graphql/package.json index 34b9d665..feae891a 100644 --- a/test/resources/bookshop-graphql/package.json +++ b/test/resources/bookshop-graphql/package.json @@ -14,6 +14,9 @@ "kind": "mocked" } }, + "features": { + "in_memory_db": true + }, "cdsc": { "docs": true } diff --git a/test/tests/logger-prod.test.js b/test/tests/logger-prod.test.js index 707c28ed..c67bcd97 100644 --- a/test/tests/logger-prod.test.js +++ b/test/tests/logger-prod.test.js @@ -5,9 +5,7 @@ describe('graphql - query logging with sanitization in production', () => { const { gql } = require('../util') const util = require('util') - const PROJECT_PATH = path.join(__dirname, '../resources/bookshop-graphql') - - const { axios, GET, POST, data } = cds.test(PROJECT_PATH) + const { axios, GET, POST, data } = cds.test(path.join(__dirname, '../resources/bookshop-graphql')) // Prevent axios from throwing errors for non 2xx status codes axios.defaults.validateStatus = false @@ -15,10 +13,6 @@ describe('graphql - query logging with sanitization in production', () => { let _log - beforeAll(async () => { - await cds.deploy(path.join(PROJECT_PATH, 'srv')) - }) - beforeEach(async () => { await data.reset() _log = jest.spyOn(console, 'info')