mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Removing storybook tests (#16577)
This commit is contained in:
parent
e01b067d0c
commit
45ad946697
@ -59,12 +59,9 @@ workflows:
|
||||
- prep-build-test-flask:
|
||||
requires:
|
||||
- prep-deps
|
||||
- test-storybook:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build-storybook:
|
||||
requires:
|
||||
- test-storybook
|
||||
- prep-deps
|
||||
- prep-build-ts-migration-dashboard:
|
||||
requires:
|
||||
- prep-deps
|
||||
@ -432,16 +429,6 @@ jobs:
|
||||
paths:
|
||||
- development/ts-migration-dashboard/build
|
||||
|
||||
test-storybook:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Test Storybook
|
||||
command: yarn storybook:test
|
||||
|
||||
test-yarn-dedupe:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
|
@ -1,20 +0,0 @@
|
||||
/* eslint-disable import/unambiguous */
|
||||
module.exports = {
|
||||
coverageDirectory: './jest-coverage/storybook',
|
||||
coverageReporters: ['html', 'text-summary'],
|
||||
// TODO: enable resetMocks
|
||||
// resetMocks: true,
|
||||
restoreMocks: true,
|
||||
setupFiles: ['<rootDir>/test/setup.js', '<rootDir>/test/env.js'],
|
||||
setupFilesAfterEnv: ['<rootDir>/test/jest/setup.js'],
|
||||
testMatch: ['<rootDir>/ui/**/*stories.test.js'],
|
||||
testTimeout: 2500,
|
||||
transform: {
|
||||
'^.+\\.[tj]sx?$': 'babel-jest',
|
||||
'^.+\\.mdx$': '@storybook/addon-docs/jest-transform-mdx',
|
||||
},
|
||||
testEnvironment: 'jsdom',
|
||||
testEnvironmentOptions: {
|
||||
customExportConditions: ['node', 'node-addons'],
|
||||
},
|
||||
};
|
@ -65,7 +65,6 @@
|
||||
"start:dev": "concurrently -k -n build,react,redux yarn:start yarn:devtools:react yarn:devtools:redux",
|
||||
"announce": "node development/announcer.js",
|
||||
"storybook": "start-storybook -p 6006 -c .storybook",
|
||||
"storybook:test": "jest --config=./jest.stories.config.js",
|
||||
"storybook:build": "build-storybook -c .storybook -o storybook-build",
|
||||
"storybook:deploy": "storybook-to-ghpages --existing-output-dir storybook-build --remote storybook --branch master",
|
||||
"update-changelog": "auto-changelog update",
|
||||
|
@ -1,11 +0,0 @@
|
||||
/* eslint-disable jest/require-top-level-describe */
|
||||
import React from 'react';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import { DefaultStory } from './transaction-total-banner.stories';
|
||||
|
||||
it('renders transaction total banner stories with Base state', () => {
|
||||
render(<DefaultStory {...DefaultStory.args} />);
|
||||
expect(screen.findByTestId('#popover-content')).toBeDefined();
|
||||
});
|
Loading…
Reference in New Issue
Block a user