Commit graph

39 commits

Author SHA1 Message Date
Maksim Sukharev
fe4f02b0a1 fix: migrate to useRouteParams and useRouteQuery
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2025-08-22 11:09:17 +02:00
Grigorii K. Shartsev
9080ddfaef fix(permissions): permissions editor ignores changes
Template refs conflicted with component properties.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2025-07-11 16:30:24 +02:00
Maksim Sukharev
2f1bb6f64a fix: adjust jest config and test-setup, temporarily disable component tests
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2025-06-25 17:52:35 +02:00
Maksim Sukharev
44cf9e818c test: do not mock console globally
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2025-06-20 18:09:30 +02:00
Maksim Sukharev
4f3866cf9c test: do not mock session storage globally
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2025-06-20 18:09:30 +02:00
Joachim Bauch
cdd499da2c
test: Fix jest not importing olm.wasm
Signed-off-by: Joachim Bauch <bauch@struktur.de>
2025-01-16 16:30:22 +01:00
Joas Schilling
1ccbf67da2
chore: Run SPDX convertor
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-04-26 13:02:15 +02:00
Maksim Sukharev
bb12e7adad
fix(mentions): parse groups and federated user mentions, add test coverage
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-02-29 19:51:55 +01:00
Maksim Sukharev
ec9e5d9ec5
build: provide Typescript support in Vue SFC files
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-02-26 10:29:22 +01:00
Maksim Sukharev
e99bda5f02
fix(deps): adjust jest.config
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-01-29 17:48:03 +01:00
Joas Schilling
9fc047795d
fix(jest): Add SVG mock from server to fix jest
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-02 16:12:04 +01:00
Maksim Sukharev
50598f0b65
chore(deps): update ignore patterns for jest
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-10-10 11:31:08 +02:00
Maksim Sukharev
0d2446c1bd
revert mapping of cjs module
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-07-19 17:26:59 +02:00
Maksim Sukharev
7b307695a7
adjust tests, remove redundant jest mock library
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-07-10 23:47:39 +02:00
Maksim Sukharev
23785d3e24
fix stylesheets mapping for jest
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-05-05 19:28:36 +02:00
Grigorii Shartsev
c39f69b41e chore(front): make unit-testing cross-platform
Signed-off-by: Grigorii Shartsev <grigorii.shartsev@nextcloud.com>
2023-05-02 17:55:31 +02:00
Antreesy
37239312d8 Bump jest to @29.5.0, jest-mock-axios to @4.7.1
Signed-off-by: Antreesy <antreesy.web@gmail.com>
2023-03-29 11:05:58 +02:00
Raimund Schlüßler
55932025ff
Adjust jest transformIgnorePatterns for NcRichText
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
2023-03-02 21:14:32 +01:00
Julien Veyssier
da7af1d7cb
use all RichText related components/functions from @nextcloud/vue
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-03-02 13:41:03 +01:00
Maksim Sukharev
e34e440acd
add style and focus-trap mocks for jest
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-02-24 12:10:12 +01:00
Marco Ambrosini
f130d9a459 Fix tests
Signed-off-by: Marco Ambrosini <marcoambrosini@icloud.com>
2022-09-13 16:22:03 +02:00
Marco Ambrosini
e7853c59a7 Use jest instead of @vue/cli-plugin-jest
Signed-off-by: Marco Ambrosini <marcoambrosini@icloud.com>
2022-09-12 17:21:12 +02:00
Joas Schilling
e2caa8596f
Fix jest ignore list
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-31 16:12:40 +02:00
Marco Ambrosini
47e98d86d6 Update my email
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2022-07-23 07:29:25 +02:00
Daniel Calviño Sánchez
e91c9c68ed Ignore "virtual-background/vendor" files when running tests
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-10-11 16:48:38 +02:00
Vincent Petry
18df7079c0 Also transpile @nextcloud/vue in jest config
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-06-10 15:40:09 +01:00
Vincent Petry
deeeec37b6 Adjust Jest tests for 4.0.0
Add additional excluded patterns.
Add global appName value in test setup.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-06-10 15:40:09 +01:00
Vincent Petry
f36ad0b63a
JS tests for LeftSidebar
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-05-18 09:43:38 +02:00
Joas Schilling
903e5a0b10
Merge pull request #5570 from nextcloud/test/noid/messages
JS tests for Message component
2021-05-11 14:02:58 +02:00
Vincent Petry
ac9477f9e8
Output jest coverage to console
Add config option for Jest to scan all source files when reporting
coverage.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-05-11 12:23:05 +02:00
Vincent Petry
8ce1f0df5f
Add JS tests for Message component
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-05-10 11:46:47 +02:00
Vincent Petry
bb474060e9
Fix tabs in config files
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-30 15:24:08 +02:00
Vincent Petry
a41b98045d
Added file upload store tests
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-30 09:59:44 +02:00
Vincent Petry
e6a5f390c7
More JS tests for stores
Added more JS tests for stores.
Extracted global store config to a separate file to be able to include it in
tests.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-23 18:16:10 +02:00
Vincent Petry
33a8b59606
Add more varied JS test cases
Added more varied JS test cases as examples for how to test different
parts of the Vue code like stores and services.

Adjusted global test namespace.

Introduced jest mock for axios.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-22 18:20:52 +02:00
Joas Schilling
1fcfd99dc9 Execute unit tests on github
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-24 11:33:34 +01:00
Marco Ambrosini
c349e7ebbb Allow tests in the /src folder
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-03-24 10:16:37 +01:00
Marco Ambrosini
9b661fcbe6 Add avatarwrapper component
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-03-24 10:16:37 +01:00
Marco Ambrosini
35fc161be7 Install jest
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-03-18 09:29:42 +01:00