From 5ad9e8f0f6bcb30e07c07f3f44ee3489e473ac31 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Wed, 8 May 2024 21:45:04 +0200 Subject: [PATCH] fix: add testing libraries to the playground --- playground/jest.config.js | 7 +++++++ playground/package.json | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 playground/jest.config.js diff --git a/playground/jest.config.js b/playground/jest.config.js new file mode 100644 index 0000000..7891cc8 --- /dev/null +++ b/playground/jest.config.js @@ -0,0 +1,7 @@ +module.exports = { + name: 'Integration test', + testMatch: ['**/__tests__/?(*.)+(spec|test).js'], + transform: {}, + coverageDirectory: '../coverage/', + collectCoverage: true, +}; diff --git a/playground/package.json b/playground/package.json index 47976b0..374927d 100644 --- a/playground/package.json +++ b/playground/package.json @@ -10,7 +10,11 @@ "strapi": "strapi", "cs": "config-sync" }, - "devDependencies": {}, + "devDependencies": { + "jest": "^29.7.0", + "jest-cli": "^29.7.0", + "supertest": "^6.3.3" + }, "dependencies": { "@strapi/strapi": "5.0.0-beta.2", "@strapi/plugin-users-permissions": "5.0.0-beta.2",