Skip to content

Commit

Permalink
fix(#2758): set exact-o3r-version as default for all schematics if pr…
Browse files Browse the repository at this point in the history
…ovided when adding @o3r/core
  • Loading branch information
matthieu-crouzet committed Feb 5, 2025
1 parent e6b654f commit b8bef9b
Show file tree
Hide file tree
Showing 10 changed files with 92 additions and 27 deletions.
2 changes: 1 addition & 1 deletion packages/@o3r/create/src/index.it.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('Create new otter project command', () => {
expect(() => packageManagerInstall(execInAppOptions)).not.toThrow();

const appName = 'test-application';
expect(() => packageManagerExec({ script: 'ng', args: ['g', 'application', appName, '--exact-o3r-version'] }, execInAppOptions)).not.toThrow();
expect(() => packageManagerExec({ script: 'ng', args: ['g', 'application', appName] }, execInAppOptions)).not.toThrow();
expect(existsSync(path.join(inProjectPath, 'project'))).toBe(false);
expect(() => packageManagerRunOnProject(appName, true, { script: 'build' }, execInAppOptions)).not.toThrow();

Expand Down
1 change: 1 addition & 0 deletions packages/@o3r/schematics/src/rule-factories/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export * from './dev-tools/index';
export * from './eslint-fix/index';
export * from './get-test-frameworks/index';
export * from './ng-add/index';
export * from './options/index';
export * from './remove-packages/index';
export * from './update-imports/index';
export * from './vscode-extensions/index';
40 changes: 40 additions & 0 deletions packages/@o3r/schematics/src/rule-factories/options/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import type {
Rule,
} from '@angular-devkit/schematics';
import {
getDefaultOptionsForSchematic,
getWorkspaceConfig,
} from '../../utility';

/**
* Factory of the schematic to wrap
* @param options Options of the factory
*/
type SchematicWrapperFn<S extends Record<string, any>> = (options: S) => Rule;

/**
* Wrapper method of a schematic to retrieve options from workspace and merge it with the one from the run of the schematic
* @param schematicFn
*/
export function createSchematicWithOptionsFromWorkspace<S extends Record<string, any>>(schematicFn: SchematicWrapperFn<S>): SchematicWrapperFn<S> {
return (options) => (tree, context) => {
const workspace = getWorkspaceConfig(tree);
const workspaceOptions = getDefaultOptionsForSchematic(
workspace,
context.schematic.description.collection.name,
context.schematic.description.name,
{ projectName: undefined, ...options }
);
const schematicOptionsWithoutUndefined = Object.entries(options).reduce((acc: Record<string, any>, [key, value]) => {
if (typeof value !== 'undefined') {
acc[key] = value;
}
return acc;
}, {}) as S;
const schematicOptions = {
...workspaceOptions,
...schematicOptionsWithoutUndefined
};
return schematicFn(schematicOptions satisfies S);
};
}
37 changes: 15 additions & 22 deletions packages/@o3r/schematics/src/utility/collection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import type {
WorkspaceSchema,
} from '../interfaces';
import {
getSchematicOptions,
getDefaultOptionsForSchematic,
} from './collection';

const angularJsonGenericNgAdd: WorkspaceSchema = {
projects: {},
version: 1,
schematics: { '@o3r/components:component': { path: '' },
schematics: {
'@o3r/components:component': { path: '' },
'@o3r/services:service': { path: '' },
'@o3r/store:store': { path: '' },
'@o3r/core:schematics': { path: '' },
Expand All @@ -20,7 +21,8 @@ const angularJsonGenericNgAdd: WorkspaceSchema = {
const angularJsonSpecificNgAdd: WorkspaceSchema = {
projects: {},
version: 1,
schematics: { '@o3r/components:component': { path: '' },
schematics: {
'@o3r/components:component': { path: '' },
'@o3r/services:service': { path: '' },
'@o3r/store:store': { path: '' },
'@o3r/core:schematics': { path: '' },
Expand All @@ -33,7 +35,8 @@ const angularJsonSpecificNgAdd: WorkspaceSchema = {
const angularJsonNoGeneric: WorkspaceSchema = {
projects: {},
version: 1,
schematics: { '@o3r/components:component': { path: '' },
schematics: {
'@o3r/components:component': { path: '' },
'@o3r/services:service': { path: '' },
'@o3r/store:store': { path: '' },
'@o3r/core:schematics': { path: '' },
Expand All @@ -42,32 +45,21 @@ const angularJsonNoGeneric: WorkspaceSchema = {
} as any
};

const createFakeContext = (collection: string, name: string): any => ({
schematic: {
description: {
collection: {
name: collection
},
name
}
}
});

describe('Get schematics options', () => {
it('should return the ng-add generic options followed by overall generic options', () => {
const options = getSchematicOptions(angularJsonGenericNgAdd, createFakeContext('@o3r/core', 'ng-add'));
const options = getDefaultOptionsForSchematic(angularJsonGenericNgAdd, '@o3r/core', 'ng-add');
expect(Object.keys(options)[0]).toBe('enableMetadataExtract');
expect(Object.keys(options)[1]).toBe('libsDir');
expect(Object.keys(options).length).toBe(3);
});

it('should return the generic options when no matches for schematics name', () => {
const options = getSchematicOptions(angularJsonGenericNgAdd, createFakeContext('@o3r/core', 'dummy'));
const options = getDefaultOptionsForSchematic(angularJsonGenericNgAdd, '@o3r/core', 'dummy');
expect(options).toEqual(angularJsonGenericNgAdd.schematics['*:*']);
});

it('should return the specific o3r/core ng add, followed by ng-add generic options, followed by overall generic options', () => {
const options = getSchematicOptions(angularJsonSpecificNgAdd, createFakeContext('@o3r/core', 'ng-add'));
const options = getDefaultOptionsForSchematic(angularJsonSpecificNgAdd, '@o3r/core', 'ng-add');
expect(Object.keys(options)[0]).toBe('projectName');
expect(Object.keys(options)[1]).toBe('enableMetadataExtract');
expect(Object.keys(options)[2]).toBe('libsDir');
Expand All @@ -78,14 +70,15 @@ describe('Get schematics options', () => {
});

it('should return closest matching when no generic options present', () => {
const options = getSchematicOptions(angularJsonNoGeneric, createFakeContext('@o3r/core', 'ng-add'));
const options = getDefaultOptionsForSchematic(angularJsonNoGeneric, '@o3r/core', 'ng-add');
expect(Object.keys(options)[0]).toBe('projectName');
expect(Object.keys(options)[1]).toBe('enableMetadataExtract');
expect(Object.keys(options).length).toBe(2);
});

it('should return undefined when no generic options present and no matching', () => {
const options = getSchematicOptions(angularJsonNoGeneric, createFakeContext('@o3r/core', 'dummy'));
expect(options).toBeUndefined();
it('should return empty object when no generic options present and no matching', () => {
const options = getDefaultOptionsForSchematic(angularJsonNoGeneric, '@o3r/core', 'dummy');
expect(options).toBeDefined();
expect(Object.keys(options).length).toBe(0);
});
});
3 changes: 2 additions & 1 deletion packages/@o3r/workspace/schematics/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
} from '@angular-devkit/schematics';
import {
createSchematicWithMetricsIfInstalled,
createSchematicWithOptionsFromWorkspace,
type DependencyToAdd,
enforceTildeRange,
getPackagesBaseRootFolder,
Expand Down Expand Up @@ -133,4 +134,4 @@ function generateApplicationFn(options: NgGenerateApplicationSchema): Rule {
* Add an Otter application to a monorepo
* @param options Schematic options
*/
export const generateApplication = createSchematicWithMetricsIfInstalled(generateApplicationFn);
export const generateApplication = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(generateApplicationFn));

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / checks / test (ubuntu-latest)

generateApplication › should generate an application

TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function at Object.<anonymous> (schematics/application/index.ts:137:75) at new ExportStringRef (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25) at NodeModulesTestEngineHost._resolveReferenceString (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21) at NodeModulesTestEngineHost.createSchematicDescription (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34) at SchematicEngine.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38) at CollectionImpl.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29) at SchematicTestRunner.runSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44) at Object.<anonymous> (schematics/application/index.spec.ts:44:31)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / checks / test (ubuntu-latest)

generateApplication › should generate an application with provided path

TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function at Object.<anonymous> (schematics/application/index.ts:137:75) at new ExportStringRef (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25) at NodeModulesTestEngineHost._resolveReferenceString (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21) at NodeModulesTestEngineHost.createSchematicDescription (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34) at SchematicEngine.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38) at CollectionImpl.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29) at SchematicTestRunner.runSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44) at Object.<anonymous> (schematics/application/index.spec.ts:58:31)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / checks / test (windows-latest)

generateApplication › should generate an application

TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function at Object.<anonymous> (schematics/application/index.ts:137:75) at new ExportStringRef (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25) at NodeModulesTestEngineHost._resolveReferenceString (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21) at NodeModulesTestEngineHost.createSchematicDescription (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34) at SchematicEngine.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38) at CollectionImpl.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29) at SchematicTestRunner.runSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44) at Object.<anonymous> (schematics/application/index.spec.ts:44:31)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / checks / test (windows-latest)

generateApplication › should generate an application with provided path

TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function at Object.<anonymous> (schematics/application/index.ts:137:75) at new ExportStringRef (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25) at NodeModulesTestEngineHost._resolveReferenceString (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21) at NodeModulesTestEngineHost.createSchematicDescription (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34) at SchematicEngine.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38) at CollectionImpl.createSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29) at SchematicTestRunner.runSchematic (../../../.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44) at Object.<anonymous> (schematics/application/index.spec.ts:58:31)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / UT Tests report-ubuntu-latest

generateApplication ► packages/@o3r/workspace/schematics/application/index.spec.ts ► generateApplication should generate an application

Failed test found in: packages/@o3r/workspace/dist-test/junit.xml Error: TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function
Raw output
TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/workspace/schematics/application/index.ts:137:75)
    at Runtime._execModule (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:1439:24)
    at Runtime._loadModule (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:1022:12)
    at Runtime.requireModule (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:882:12)
    at Runtime.requireModuleOrMock (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:1048:21)
    at new ExportStringRef (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25)
    at NodeModulesTestEngineHost._resolveReferenceString (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21)
    at NodeModulesTestEngineHost.createSchematicDescription (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34)
    at SchematicEngine.createSchematic (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38)
    at CollectionImpl.createSchematic (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29)
    at SchematicTestRunner.runSchematic (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/workspace/schematics/application/index.spec.ts:44:31)
    at Promise.then.completed (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / UT Tests report-ubuntu-latest

generateApplication ► packages/@o3r/workspace/schematics/application/index.spec.ts ► generateApplication should generate an application with provided path

Failed test found in: packages/@o3r/workspace/dist-test/junit.xml Error: TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function
Raw output
TypeError: (0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/workspace/schematics/application/index.ts:137:75)
    at Runtime._execModule (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:1439:24)
    at Runtime._loadModule (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:1022:12)
    at Runtime.requireModule (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:882:12)
    at Runtime.requireModuleOrMock (/home/runner/work/otter/otter/.yarn/cache/jest-runtime-npm-29.7.0-120fa64128-59eb58eb7e.zip/node_modules/jest-runtime/build/index.js:1048:21)
    at new ExportStringRef (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25)
    at NodeModulesTestEngineHost._resolveReferenceString (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21)
    at NodeModulesTestEngineHost.createSchematicDescription (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34)
    at SchematicEngine.createSchematic (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38)
    at CollectionImpl.createSchematic (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29)
    at SchematicTestRunner.runSchematic (/home/runner/work/otter/otter/.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/workspace/schematics/application/index.spec.ts:58:31)
    at Promise.then.completed (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / UT Tests report-ubuntu-latest

generateApplication ► packages/@o3r/workspace/schematics/application/index.spec.ts ► generateApplication should throw error if NX context is detected

Failed test found in: packages/@o3r/workspace/dist-test/junit.xml Error: Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)

Expected substring: "NX is not currently supported. Feature tracked via https://github.com/AmadeusITGroup/otter/issues/720"
Received message:   "(0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function"

      135 |  * @param options Schematic options
      136 |  */
    > 137 | export const generateApplication = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(generateApplicationFn));
          |                                                                           ^
      138 |

      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.ts:137:75)
      at new ExportStringRef (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25)
      at NodeModulesTestEngineHost._resolveReferenceString (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21)
      at NodeModulesTestEngineHost.createSchematicDescription (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34)
      at SchematicEngine.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38)
      at CollectionImpl.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29)
      at SchematicTestRunner.runSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44)
      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.spec.ts:72:25)
    at Object.toThrow (/home/runner/work/otter/otter/.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/index.js:218:22)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/workspace/schematics/application/index.spec.ts:72:92)
    at Promise.then.completed (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / UT Tests report-ubuntu-latest

generateApplication ► packages/@o3r/workspace/schematics/application/index.spec.ts ► generateApplication should throw error if no workspace configuration is found

Failed test found in: packages/@o3r/workspace/dist-test/junit.xml Error: Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)

Expected substring: "The `path` option is not provided and no workspace configuration file found to define it."
Received message:   "(0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function"

      135 |  * @param options Schematic options
      136 |  */
    > 137 | export const generateApplication = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(generateApplicationFn));
          |                                                                           ^
      138 |

      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.ts:137:75)
      at new ExportStringRef (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25)
      at NodeModulesTestEngineHost._resolveReferenceString (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21)
      at NodeModulesTestEngineHost.createSchematicDescription (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34)
      at SchematicEngine.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38)
      at CollectionImpl.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29)
      at SchematicTestRunner.runSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44)
      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.spec.ts:78:25)
    at Object.toThrow (/home/runner/work/otter/otter/.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/index.js:218:22)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/workspace/schematics/application/index.spec.ts:78:92)
    at Promise.then.completed (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / UT Tests report-windows-latest

generateApplication ► packages\@o3r\workspace\schematics\application\index.spec.ts ► generateApplication should throw error if NX context is detected

Failed test found in: packages/@o3r/workspace/dist-test/junit.xml Error: Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)

Expected substring: "NX is not currently supported. Feature tracked via https://github.com/AmadeusITGroup/otter/issues/720"
Received message:   "(0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function"

      135 |  * @param options Schematic options
      136 |  */
    > 137 | export const generateApplication = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(generateApplicationFn));
          |                                                                           ^
      138 |

      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.ts:137:75)
      at new ExportStringRef (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25)
      at NodeModulesTestEngineHost._resolveReferenceString (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21)
      at NodeModulesTestEngineHost.createSchematicDescription (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34)
      at SchematicEngine.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38)
      at CollectionImpl.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29)
      at SchematicTestRunner.runSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44)
      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.spec.ts:72:25)
    at Object.toThrow (D:\a\otter\otter\.yarn\cache\expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip\node_modules\expect\build\index.js:218:22)
    at Object.<anonymous> (D:\a\otter\otter\packages\@o3r\workspace\schematics\application\index.spec.ts:72:92)
    at Promise.then.completed (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\utils.js:231:10)
    at _callCircusTest (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:252:3)
    at _runTestsForDescribeBlock (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:126:9)
    at _runTestsForDescribeBlock (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:121:9)
    at run (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:71:3)
    at runAndTransformResultsToJestFormat (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapterInit.js:122:21)
    at jestAdapter (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapter.js:79:19)
    at runTestInternal (D:\a\otter\otter\.yarn\cache\jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip\node_modules\jest-runner\build\runTest.js:367:16)
    at runTest (D:\a\otter\otter\.yarn\cache\jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip\node_modules\jest-runner\build\runTest.js:444:34)
    at Object.worker (D:\a\otter\otter\.yarn\cache\jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip\node_modules\jest-runner\build\testWorker.js:106:12)

Check failure on line 137 in packages/@o3r/workspace/schematics/application/index.ts

View workflow job for this annotation

GitHub Actions / UT Tests report-windows-latest

generateApplication ► packages\@o3r\workspace\schematics\application\index.spec.ts ► generateApplication should throw error if no workspace configuration is found

Failed test found in: packages/@o3r/workspace/dist-test/junit.xml Error: Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)

Expected substring: "The `path` option is not provided and no workspace configuration file found to define it."
Received message:   "(0 , schematics_2.createSchematicWithOptionsFromWorkspace) is not a function"

      135 |  * @param options Schematic options
      136 |  */
    > 137 | export const generateApplication = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(generateApplicationFn));
          |                                                                           ^
      138 |

      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.ts:137:75)
      at new ExportStringRef (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/export-ref.js:22:25)
      at NodeModulesTestEngineHost._resolveReferenceString (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21)
      at NodeModulesTestEngineHost.createSchematicDescription (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:179:34)
      at SchematicEngine.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:233:38)
      at CollectionImpl.createSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/src/engine/engine.js:82:29)
      at SchematicTestRunner.runSchematic (.yarn/cache/@angular-devkit-schematics-npm-18.2.12-85dfcfaac2-7e3f345ce2.zip/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.js:63:44)
      at Object.<anonymous> (packages/@o3r/workspace/schematics/application/index.spec.ts:78:25)
    at Object.toThrow (D:\a\otter\otter\.yarn\cache\expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip\node_modules\expect\build\index.js:218:22)
    at Object.<anonymous> (D:\a\otter\otter\packages\@o3r\workspace\schematics\application\index.spec.ts:78:92)
    at Promise.then.completed (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\utils.js:231:10)
    at _callCircusTest (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:252:3)
    at _runTestsForDescribeBlock (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:126:9)
    at _runTestsForDescribeBlock (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:121:9)
    at run (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\run.js:71:3)
    at runAndTransformResultsToJestFormat (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapterInit.js:122:21)
    at jestAdapter (D:\a\otter\otter\.yarn\cache\jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapter.js:79:19)
    at runTestInternal (D:\a\otter\otter\.yarn\cache\jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip\node_modules\jest-runner\build\runTest.js:367:16)
    at runTest (D:\a\otter\otter\.yarn\cache\jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip\node_modules\jest-runner\build\runTest.js:444:34)
    at Object.worker (D:\a\otter\otter\.yarn\cache\jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip\node_modules\jest-runner\build\testWorker.js:106:12)
3 changes: 2 additions & 1 deletion packages/@o3r/workspace/schematics/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import {
applyEsLintFix,
createSchematicWithMetricsIfInstalled,
createSchematicWithOptionsFromWorkspace,
type DependencyToAdd,
getPackagesBaseRootFolder,
getWorkspaceConfig,
Expand Down Expand Up @@ -88,4 +89,4 @@ function generateModuleFn(options: NgGenerateModuleSchema): Rule {
* Add an Otter compatible module to a monorepo
* @param options Schematic options
*/
export const generateModule = createSchematicWithMetricsIfInstalled(generateModuleFn);
export const generateModule = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(generateModuleFn));
3 changes: 2 additions & 1 deletion packages/@o3r/workspace/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from '@angular-devkit/schematics/tasks';
import {
createSchematicWithMetricsIfInstalled,
createSchematicWithOptionsFromWorkspace,
getPackageManagerExecutor,
getWorkspaceConfig,
registerPackageCollectionSchematics,
Expand Down Expand Up @@ -67,4 +68,4 @@ function ngAddFn(options: NgAddSchematicsSchema): Rule {
* Add Otter library to an Angular Project
* @param options
*/
export const ngAdd = createSchematicWithMetricsIfInstalled(ngAddFn);
export const ngAdd = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(ngAddFn));
3 changes: 2 additions & 1 deletion packages/@o3r/workspace/schematics/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
} from '@angular-devkit/schematics/tasks';
import {
createSchematicWithMetricsIfInstalled,
createSchematicWithOptionsFromWorkspace,
getPackageManager,
getPackagesBaseRootFolder,
getWorkspaceConfig,
Expand Down Expand Up @@ -131,4 +132,4 @@ function generateSdkFn(options: NgGenerateSdkSchema): Rule {
* Add an Otter compatible SDK to a monorepo
* @param options Schematic options
*/
export const generateSdk = createSchematicWithMetricsIfInstalled(generateSdkFn);
export const generateSdk = createSchematicWithOptionsFromWorkspace(createSchematicWithMetricsIfInstalled(generateSdkFn));
27 changes: 27 additions & 0 deletions tools/github-actions/new-version/packaged-action/LICENSE.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified tools/github-actions/release/packaged-action/index.cjs
100755 → 100644
Empty file.

0 comments on commit b8bef9b

Please sign in to comment.