This commit is contained in:
@@ -10,7 +10,7 @@ const swcJestConfig = JSON.parse(
|
||||
swcJestConfig.swcrc = false;
|
||||
|
||||
export default {
|
||||
displayName: '@my-monorepo/api-e2e',
|
||||
displayName: '@spairtech/api-e2e',
|
||||
preset: '../../jest.preset.js',
|
||||
globalSetup: '<rootDir>/src/support/global-setup.ts',
|
||||
globalTeardown: '<rootDir>/src/support/global-teardown.ts',
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "@my-monorepo/api-e2e",
|
||||
"name": "@spairtech/api-e2e",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"nx": {
|
||||
"implicitDependencies": [
|
||||
"@my-monorepo/api"
|
||||
"@spairtech/api"
|
||||
],
|
||||
"targets": {
|
||||
"e2e": {
|
||||
@@ -17,8 +17,8 @@
|
||||
"passWithNoTests": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"@my-monorepo/api:build",
|
||||
"@my-monorepo/api:serve"
|
||||
"@spairtech/api:build",
|
||||
"@spairtech/api:serve"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "out-tsc/@my-monorepo/api-e2e",
|
||||
"outDir": "out-tsc/@spairtech/api-e2e",
|
||||
"esModuleInterop": true,
|
||||
"noUnusedLocals": false,
|
||||
"noImplicitAny": false
|
||||
|
||||
@@ -10,7 +10,7 @@ const swcJestConfig = JSON.parse(
|
||||
swcJestConfig.swcrc = false;
|
||||
|
||||
module.exports = {
|
||||
displayName: '@my-monorepo/api',
|
||||
displayName: '@spairtech/api',
|
||||
preset: '../../jest.preset.js',
|
||||
testEnvironment: 'node',
|
||||
transform: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@my-monorepo/api",
|
||||
"name": "@spairtech/api",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"nx": {
|
||||
@@ -63,15 +63,15 @@
|
||||
"build"
|
||||
],
|
||||
"options": {
|
||||
"buildTarget": "@my-monorepo/api:build",
|
||||
"buildTarget": "@spairtech/api:build",
|
||||
"runBuildTargetDependencies": false
|
||||
},
|
||||
"configurations": {
|
||||
"development": {
|
||||
"buildTarget": "@my-monorepo/api:build:development"
|
||||
"buildTarget": "@spairtech/api:build:development"
|
||||
},
|
||||
"production": {
|
||||
"buildTarget": "@my-monorepo/api:build:production"
|
||||
"buildTarget": "@spairtech/api:build:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -5,9 +5,9 @@ export default defineConfig({
|
||||
...nxE2EPreset(__filename, {
|
||||
cypressDir: 'src',
|
||||
webServerCommands: {
|
||||
default: 'npx nx run @my-monorepo/web:dev',
|
||||
default: 'npx nx run @spairtech/web:dev',
|
||||
},
|
||||
ciWebServerCommand: 'npx nx run @my-monorepo/web:start',
|
||||
ciWebServerCommand: 'npx nx run @spairtech/web:start',
|
||||
ciBaseUrl: 'http://localhost:3000',
|
||||
}),
|
||||
baseUrl: 'http://127.0.0.1:3000',
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "@my-monorepo/web-e2e",
|
||||
"name": "@spairtech/web-e2e",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"nx": {
|
||||
"implicitDependencies": [
|
||||
"@my-monorepo/web"
|
||||
"@spairtech/web"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getGreeting } from '../support/app.po';
|
||||
|
||||
describe('@my-monorepo/web-e2e', () => {
|
||||
describe('@spairtech/web-e2e', () => {
|
||||
beforeEach(() => cy.visit('/'));
|
||||
|
||||
it('should display welcome message', () => {
|
||||
|
||||
@@ -5,7 +5,7 @@ const createJestConfig = nextJest({
|
||||
});
|
||||
|
||||
const config = {
|
||||
displayName: '@my-monorepo/web',
|
||||
displayName: '@spairtech/web',
|
||||
preset: '../../jest.preset.js',
|
||||
transform: {
|
||||
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@my-monorepo/web",
|
||||
"name": "@spairtech/web",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user