Skip to content

Commit 40128ec

Browse files
authored
Merge pull request #61 from eviltester/56-move-tests-to-apps
api test refactoring move closes #56
2 parents 4abc006 + 32fe374 commit 40128ec

9 files changed

Lines changed: 6 additions & 6 deletions

File tree

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let baseUrl;
1313
export async function setupApiServer() {
1414
// Dynamic import to avoid top-level await issues
1515
if (!apiModule) {
16-
apiModule = await import('../../apps/api/src/index.js');
16+
apiModule = await import('../index.js');
1717
}
1818

1919
const result = await apiModule.startApiServer(apiModule.app, {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

playwright-api.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { defineConfig } = require('@playwright/test');
55
* This configuration is optimized for REST API testing without browser UI
66
*/
77
module.exports = defineConfig({
8-
testDir: './tests/api',
8+
testDir: './apps/api/src/tests',
99
testMatch: '**/*.spec.js',
1010
timeout: 30000,
1111
workers: process.env.CI ? 6 : 4,
@@ -35,7 +35,7 @@ module.exports = defineConfig({
3535
projects: [
3636
{
3737
name: 'api-tests',
38-
testDir: './tests/api',
38+
testDir: './apps/api/src/tests',
3939
use: {
4040
// Configuration specific to API testing
4141
},
@@ -46,6 +46,6 @@ module.exports = defineConfig({
4646
outputDir: 'test-results/api-output',
4747

4848
// Global setup and teardown
49-
globalSetup: './tests/api/global-setup.js',
50-
globalTeardown: './tests/api/global-teardown.js',
51-
});
49+
globalSetup: './apps/api/src/tests/global-setup.js',
50+
globalTeardown: './apps/api/src/tests/global-teardown.js',
51+
});

0 commit comments

Comments
 (0)