Skip to content

Commit

Permalink
fix(workspace): migrate nx vitest inferred
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherPHolder committed Aug 13, 2024
1 parent 16e996b commit 42ebf02
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ExecutorContext } from '@nx/devkit';

import { LambdaDeplyExecutorSchema } from './schema';
import { LambdaDeployExecutorSchema } from './schema';
import executor from './executor';

const options: LambdaDeplyExecutorSchema = {};
const options: LambdaDeployExecutorSchema = {} as LambdaDeployExecutorSchema;
const context: ExecutorContext = {
root: '',
cwd: process.cwd(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('lambdaDeplyHasher', () => {
},
overrides: {},
outputs: [],
parallelism: true,
},
{
hasher: mockHasher,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-access/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export default {
displayName: 'data-access',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
globals: {},
coverageDirectory: '../../coverage/libs/data-access',
transform: {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export default {
displayName: 'shared',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
globals: {},
coverageDirectory: '../../coverage/libs/shared',
transform: {
Expand Down
2 changes: 2 additions & 0 deletions packages/user-flow-replay/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export default defineConfig({
cache: {
dir: '../../node_modules/.vitest',
},
pool: 'threads',
poolOptions: { threads: { singleThread: true } },
environment: 'node',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
},
Expand Down
1 change: 1 addition & 0 deletions packages/userflow-conductor-svc/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig({
// },

test: {
passWithNoTests: true,
watch: false,
globals: true,
cache: { dir: '../../node_modules/.vitest/packages/userflow-conductor-svc' },
Expand Down
1 change: 1 addition & 0 deletions packages/userflow-conductor/shared-util-lib/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig({
// },

test: {
passWithNoTests: true,
watch: false,
globals: true,
cache: { dir: '../../../node_modules/.vitest/packages/userflow-conductor/shared-util-lib' },
Expand Down
1 change: 1 addition & 0 deletions packages/userflow-conductor/socket-io-ser/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig({
// },

test: {
passWithNoTests: true,
watch: false,
globals: true,
cache: { dir: '../../../node_modules/.vitest/packages/userflow-conductor/socket-io-ser' },
Expand Down

0 comments on commit 42ebf02

Please sign in to comment.