diff --git a/webapp/Dockerfile b/webapp/Dockerfile
index dec3cda0e..d14c791a8 100644
--- a/webapp/Dockerfile
+++ b/webapp/Dockerfile
@@ -46,6 +46,7 @@ ONBUILD RUN cp -r ./constants /build
ONBUILD RUN cp -r ./static /build
ONBUILD RUN cp -r ./locales /build
ONBUILD RUN cp -r ./package.json ./yarn.lock /build
+ONBUILD RUN cp -r ./scripts /build
ONBUILD RUN cd /build && yarn install --production=true --frozen-lockfile --non-interactive
FROM base AS test_build
@@ -62,6 +63,7 @@ RUN cp -r ./constants /build
RUN cp -r ./static /build
RUN cp -r ./locales /build
RUN cp -r ./package.json ./yarn.lock /build
+RUN cp -r ./scripts /build
RUN cd /build && yarn install --frozen-lockfile --non-interactive
FROM test_build AS test
diff --git a/webapp/components/CommentCard/CommentCard.spec.js b/webapp/components/CommentCard/CommentCard.spec.js
index 78d87e497..f4fa307fb 100644
--- a/webapp/components/CommentCard/CommentCard.spec.js
+++ b/webapp/components/CommentCard/CommentCard.spec.js
@@ -62,6 +62,9 @@ describe('CommentCard.vue', () => {
Wrapper = () => {
const store = new Vuex.Store({
getters,
+ actions: {
+ 'pinnedPosts/fetch': jest.fn(),
+ },
})
return mount(CommentCard, {
store,
diff --git a/webapp/components/CommentList/CommentList.spec.js b/webapp/components/CommentList/CommentList.spec.js
index f4195aa41..d8be2375c 100644
--- a/webapp/components/CommentList/CommentList.spec.js
+++ b/webapp/components/CommentList/CommentList.spec.js
@@ -50,9 +50,12 @@ describe('CommentList.vue', () => {
return { id: 'some-user' }
},
},
+ actions: {
+ 'pinnedPosts/fetch': jest.fn(),
+ },
})
mocks = {
- $t: jest.fn(),
+ $t: (key) => key,
$filters: {
truncate: (a) => a,
removeHtml: (a) => a,
diff --git a/webapp/components/Empty/CallToAction/CtaUnblockAuthor.spec.js b/webapp/components/Empty/CallToAction/CtaUnblockAuthor.spec.js
index 66e46b4b5..5f4e31ddf 100755
--- a/webapp/components/Empty/CallToAction/CtaUnblockAuthor.spec.js
+++ b/webapp/components/Empty/CallToAction/CtaUnblockAuthor.spec.js
@@ -4,6 +4,10 @@ import Component from './CtaUnblockAuthor.vue'
const localVue = global.localVue
+const stubs = {
+ 'nuxt-link': true,
+}
+
describe('CtaUnblockAuthor.vue', () => {
let propsData, wrapper, mocks
@@ -21,7 +25,7 @@ describe('CtaUnblockAuthor.vue', () => {
})
const Wrapper = () => {
- return shallowMount(Component, { propsData, localVue, mocks })
+ return shallowMount(Component, { propsData, localVue, mocks, stubs })
}
describe('shallowMount', () => {
diff --git a/webapp/components/Empty/CallToAction/__snapshots__/CtaUnblockAuthor.spec.js.snap b/webapp/components/Empty/CallToAction/__snapshots__/CtaUnblockAuthor.spec.js.snap
index d3b8ad797..0264ad49e 100755
--- a/webapp/components/Empty/CallToAction/__snapshots__/CtaUnblockAuthor.spec.js.snap
+++ b/webapp/components/Empty/CallToAction/__snapshots__/CtaUnblockAuthor.spec.js.snap
@@ -9,10 +9,10 @@ exports[`CtaUnblockAuthor.vue shallowMount renders 1`] = `