Skip to content

Commit

Permalink
feat: add important dependencies
Browse files Browse the repository at this point in the history
>
>
Co-authored-by: Persists jonas@mennicke.com
  • Loading branch information
KonsumGandalf committed Apr 25, 2024
1 parent a5d2596 commit 80a8542
Show file tree
Hide file tree
Showing 7 changed files with 436 additions and 414 deletions.
22 changes: 0 additions & 22 deletions apps/frontend-e2e/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +0,0 @@
{
"extends": ["plugin:playwright/recommended", "../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["src/**/*.{ts,js,tsx,jsx}"],
"rules": {}
}
]
}
69 changes: 0 additions & 69 deletions apps/frontend-e2e/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,69 +0,0 @@
import { defineConfig, devices } from '@playwright/test';
import { nxE2EPreset } from '@nx/playwright/preset';

import { workspaceRoot } from '@nx/devkit';

// For CI, you may want to set BASE_URL to the deployed application.
const baseURL = process.env['BASE_URL'] || 'http://localhost:4200';

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
...nxE2EPreset(__filename, { testDir: './src' }),
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
baseURL,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
/* Run your local dev server before starting the tests */
webServer: {
command: 'pnpm exec nx serve frontend',
url: 'http://localhost:4200',
reuseExistingServer: !process.env.CI,
cwd: workspaceRoot,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

// Uncomment for mobile browsers support
/* {
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] },
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] },
}, */

// Uncomment for branded browsers
/* {
name: 'Microsoft Edge',
use: { ...devices['Desktop Edge'], channel: 'msedge' },
},
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' },
} */
],
});
8 changes: 0 additions & 8 deletions apps/frontend-e2e/src/example.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('/');

// Expect h1 to contain a substring.
expect(await page.locator('h1').innerText()).toContain('Welcome');
});
25 changes: 0 additions & 25 deletions apps/frontend-e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"allowJs": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"sourceMap": false,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"**/*.ts",
"**/*.js",
"playwright.config.ts",
"src/**/*.spec.ts",
"src/**/*.spec.js",
"src/**/*.test.ts",
"src/**/*.test.js",
"src/**/*.d.ts"
]
}
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@
"@angular/platform-browser": "~17.3.0",
"@angular/platform-browser-dynamic": "~17.3.0",
"@angular/router": "~17.3.0",
"@faker-js/faker": "^8.4.1",
"@nestjs/common": "^10.0.2",
"@nestjs/core": "^10.0.2",
"@nestjs/platform-express": "^10.0.2",
"@nx/angular": "18.3.3",
"axios": "^1.6.0",
"@siemens/ix-angular": "^2.2.1",
"axios": "^1.6.8",
"class-validator": "^0.14.1",
"dotenv": "^16.4.5",
"lodash": "^4.17.21",
"postgres": "^3.4.4",
"prisma": "^5.13.0",
"reflect-metadata": "^0.1.13",
"rxjs": "~7.8.0",
"ts-enum-util": "^4.1.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.3"
},
Expand Down Expand Up @@ -56,7 +64,6 @@
"@types/node": "18.16.9",
"@typescript-eslint/eslint-plugin": "^7.3.0",
"@typescript-eslint/parser": "^7.3.0",
"@vitest/ui": "^1.3.1",
"eslint": "~8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-playwright": "^0.15.3",
Expand All @@ -69,8 +76,6 @@
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.4.2",
"vite": "~5.0.0",
"vitest": "^1.3.1",
"webpack-cli": "^5.1.4"
}
}

0 comments on commit 80a8542

Please sign in to comment.