mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
ce77018b7c
[Visual changes] This should result in 9 visual regression failures relating to increased height of search results and loading bar [More details about change] - Migrate search app from Vue 2 to Vue 3; update tests accordingly - Remove dependence on WVUI and use Codex instead, via the special `@wikimedia/codex-search` package - Update search app to use CdxTypeaheadSearch, which no longer takes in props related to the search client or fetch start/end instrumentation. Instead, directly use the restSearchClient and call fetch start/end events in the search app. - Handle hideDirection in the search app/API response formatting code, not within the TypeaheadSearch component - Handle showing/hiding the search button in the app - Move the WVUI URL generator into Vector - Update server-rendered search box styles to match design updates included with CdxTypeaheadSearch - Replace references to WVUI with references to Codex - Update values of various LESS variables to match Codex, and update searchBox styling to prevent jankiness when the searchBox is replaced with the Codex TypeaheadSearch component The VectorWvuiSearchOptions config variable has been maintained and will be updated to a code-agnostic name in a future patch. Bug: T300573 Bug: T302137 Bug: T303558 Bug: T309722 Bug: T310525 Co-Authored-By: Anne Tomasevich <atomasevich@wikimedia.org> Change-Id: I59fa3a006d988b14ebd8020cbd58e8d7bedbfe01
57 lines
1.3 KiB
JavaScript
57 lines
1.3 KiB
JavaScript
// For a detailed explanation regarding each configuration property, visit:
|
|
// https://jestjs.io/docs/en/configuration.html
|
|
|
|
module.exports = {
|
|
moduleNameMapper: {
|
|
},
|
|
|
|
// Automatically clear mock calls and instances between every test
|
|
clearMocks: true,
|
|
|
|
// Indicates whether the coverage information should be collected while executing the test
|
|
collectCoverage: true,
|
|
|
|
// An array of glob patterns indicating a set of files fo
|
|
// which coverage information should be collected
|
|
collectCoverageFrom: [
|
|
'resources/**/*.(js|vue)'
|
|
],
|
|
|
|
// The directory where Jest should output its coverage files
|
|
coverageDirectory: 'coverage',
|
|
|
|
// An array of regexp pattern strings used to skip coverage collection
|
|
coveragePathIgnorePatterns: [
|
|
'/node_modules/'
|
|
],
|
|
|
|
// An object that configures minimum threshold enforcement for coverage results
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 14,
|
|
functions: 24,
|
|
lines: 22,
|
|
statements: 22
|
|
}
|
|
},
|
|
|
|
// An array of file extensions your modules use
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'json',
|
|
'vue'
|
|
],
|
|
|
|
// The paths to modules that run some code to configure or
|
|
// set up the testing environment before each test
|
|
setupFiles: [
|
|
'./jest.setup.js'
|
|
],
|
|
|
|
testEnvironment: 'jsdom',
|
|
|
|
transform: {
|
|
'.*\\.(vue)$': '<rootDir>/node_modules/@vue/vue3-jest'
|
|
}
|
|
};
|