mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
fix unit test and storybook
Signed-off-by: eromano <eugenioromano16@gmail.com>
This commit is contained in:
@@ -130,7 +130,7 @@ jobs:
|
|||||||
script:
|
script:
|
||||||
# Build Demo shell & Storybook for production docker"
|
# Build Demo shell & Storybook for production docker"
|
||||||
- NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --configuration production
|
- NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --configuration production
|
||||||
- NODE_OPTIONS=--max_old_space_size=8192 nx run stories:build-storybook --configuration ci --projectBuildConfig=stories:build-storybook
|
- NODE_OPTIONS=--max_old_space_size=8192 nx run stories:build-storybook --configuration ci
|
||||||
- ./scripts/travis/release/release-docker.sh
|
- ./scripts/travis/release/release-docker.sh
|
||||||
workspaces:
|
workspaces:
|
||||||
create:
|
create:
|
||||||
|
23
angular.json
23
angular.json
@@ -807,13 +807,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"architect": {
|
"architect": {
|
||||||
"storybook": {
|
"storybook": {
|
||||||
"builder": "@nrwl/storybook:storybook",
|
"builder": "@storybook/angular:start-storybook",
|
||||||
"options": {
|
"options": {
|
||||||
"uiFramework": "@storybook/angular",
|
"browserTarget": "stories:build-storybook",
|
||||||
"port": 4400,
|
"port": 4400,
|
||||||
"config": {
|
"configFolder": "lib/stories/.storybook"
|
||||||
"configFolder": "lib/stories/.storybook"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"ci": {
|
"ci": {
|
||||||
@@ -822,16 +820,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"build-storybook": {
|
"build-storybook": {
|
||||||
"builder": "@nrwl/storybook:build",
|
"builder": "@storybook/angular:build-storybook",
|
||||||
"outputs": [
|
"outputs": ["{options.outputPath}"],
|
||||||
"{options.outputPath}"
|
|
||||||
],
|
|
||||||
"options": {
|
"options": {
|
||||||
"uiFramework": "@storybook/angular",
|
"outputDir": "dist/storybook/stories",
|
||||||
"outputPath": "dist/storybook/stories",
|
"configDir": "lib/stories/.storybook",
|
||||||
"config": {
|
"browserTarget": "stories:build-storybook",
|
||||||
"configFolder": "lib/stories/.storybook"
|
"compodoc": false
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"ci": {
|
"ci": {
|
||||||
|
@@ -24,7 +24,7 @@ import { FormFieldModel } from './form-field.model';
|
|||||||
import { FormOutcomeModel } from './form-outcome.model';
|
import { FormOutcomeModel } from './form-outcome.model';
|
||||||
import { FormModel } from './form.model';
|
import { FormModel } from './form.model';
|
||||||
import { TabModel } from './tab.model';
|
import { TabModel } from './tab.model';
|
||||||
import { cloudFormMock, fakeMetadataForm, fakeViewerForm } from '../../mock/form.mock';
|
import { fakeMetadataForm, fakeViewerForm } from '../../mock/form.mock';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
import { UploadWidgetContentLinkModel } from './upload-widget-content-link.model';
|
import { UploadWidgetContentLinkModel } from './upload-widget-content-link.model';
|
||||||
import { AlfrescoApiService } from '../../../../services';
|
import { AlfrescoApiService } from '../../../../services';
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { DebugElement } from '@angular/core';
|
import { DebugElement } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { CoreTestingModule, setupTestBed } from 'core/testing';
|
import { CoreTestingModule, setupTestBed } from '../../../../testing';
|
||||||
|
|
||||||
import { DisplayRichTextWidgetComponent } from './display-rich-text.widget';
|
import { DisplayRichTextWidgetComponent } from './display-rich-text.widget';
|
||||||
|
|
||||||
|
@@ -132,7 +132,7 @@
|
|||||||
"@paperist/types-remark": "0.1.3",
|
"@paperist/types-remark": "0.1.3",
|
||||||
"@playwright/test": "^1.20.0",
|
"@playwright/test": "^1.20.0",
|
||||||
"@quanzo/change-font-size": "1.0.0",
|
"@quanzo/change-font-size": "1.0.0",
|
||||||
"@storybook/addon-essentials": "6.5.9",
|
"@storybook/addon-essentials": "^6.5.9",
|
||||||
"@storybook/angular": "6.5.9",
|
"@storybook/angular": "6.5.9",
|
||||||
"@storybook/builder-webpack5": "6.5.9",
|
"@storybook/builder-webpack5": "6.5.9",
|
||||||
"@storybook/manager-webpack5": "6.5.9",
|
"@storybook/manager-webpack5": "6.5.9",
|
||||||
|
Reference in New Issue
Block a user