From 8f4550d6215f087bd6db6693664f2e58277e475d Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Thu, 14 Oct 2021 17:29:45 +0300 Subject: [PATCH] ci: fix using npm run build-wasm Newer npm seems to invoke the command without the current user privileges. However, Go already initializes its cache using root. Change-Id: I23b32ca3bbd7db06515c2af86b1bb5adc8e38a8f --- Jenkinsfile.public | 2 +- .../tests/unit/project/EditProjectDetails.spec.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.public b/Jenkinsfile.public index 9c2085ef1..4a42b8e33 100644 --- a/Jenkinsfile.public +++ b/Jenkinsfile.public @@ -94,7 +94,7 @@ pipeline { steps { dir('web/satellite') { sh 'npm ci --prefer-offline --no-audit' - sh 'npm run wasm-dev' + sh './scripts/build-wasm.sh' sh 'npm run build' } } diff --git a/web/satellite/tests/unit/project/EditProjectDetails.spec.ts b/web/satellite/tests/unit/project/EditProjectDetails.spec.ts index 7866022a2..0abe82e6b 100644 --- a/web/satellite/tests/unit/project/EditProjectDetails.spec.ts +++ b/web/satellite/tests/unit/project/EditProjectDetails.spec.ts @@ -23,7 +23,15 @@ const projectsApi = new ProjectsApiMock(); projectsApi.setMockLimits(projectLimits); const projectsModule = makeProjectsModule(projectsApi); -const store = new Vuex.Store({ modules: { projectsModule }}); +const store = new Vuex.Store({ + modules: { + projectsModule, + usersModule: { + state: { + user: { paidTier: false }, + } + } + }}); const project = new Project('id', 'test', 'test', 'test', 'ownedId', false); describe('EditProjectDetails.vue', () => {