Skip to content

Commit

Permalink
feat: remove useless code and config
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Dec 1, 2023
1 parent 4d79ae5 commit 48200b7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"csv-parser": "^3.0.0",
"dompurify": "^2.4.1",
"jsdom": "^22.1.0",
"postinstall": "^0.7.4",
"web-streams-polyfill": "^3.2.1"
"postinstall": "^0.7.4"
},
"devDependencies": {
"@types/autosize": "^4.0.1",
Expand Down
1 change: 0 additions & 1 deletion server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/

import { first } from 'rxjs/operators';
import 'web-streams-polyfill';
import { AssistantConfig } from '.';
import {
CoreSetup,
Expand Down
3 changes: 0 additions & 3 deletions test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ module.exports = {
'<rootDir>/public/requests/',
'/__utils__/',
],
// https://github.com/jestjs/jest/issues/6229#issuecomment-403539460
transformIgnorePatterns: ['node_modules/(?!langsmith)'],
moduleNameMapper: {
'\\.(css|less|sass|scss)$': '<rootDir>/test/__mocks__/styleMock.js',
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__mocks__/fileMock.js',
'\\@algolia/autocomplete-theme-classic$': '<rootDir>/test/__mocks__/styleMock.js',
'^!!raw-loader!.*': 'jest-raw-loader',
},
testEnvironment: 'jsdom',
Expand Down
2 changes: 0 additions & 2 deletions test/setup.jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

// import '@testing-library/jest-dom/extend-expect';
import { configure } from '@testing-library/react';
import { TextDecoder, TextEncoder } from 'util';
import 'web-streams-polyfill';

configure({ testIdAttribute: 'data-test-subj' });

Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1636,11 +1636,6 @@ w3c-xmlserializer@^4.0.0:
dependencies:
xml-name-validator "^4.0.0"

web-streams-polyfill@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz#71c2718c52b45fd49dbeee88634b3a60ceab42a6"
integrity sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==

webidl-conversions@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a"
Expand Down

0 comments on commit 48200b7

Please sign in to comment.