This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto-fill PR with Jira info | |
on: | |
pull_request: | |
branches: [ master ] | |
types: [ opened ] | |
permissions: | |
pull-requests: write | |
contents: read |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const whitelist = [ | |
'counter', | |
'user' | |
] | |
export const STORAGE_NAME= 'persist:SVELTE_STORAGE' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const whitelist = [ | |
'counter', | |
] | |
export const STORAGE_NAME= 'persist:SVELTE_STORAGE' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware } from 'redux'; | |
import createSagaMiddleware from 'redux-saga'; | |
import rootReducer from './modules/rootReducer'; | |
import rootSaga from './modules/rootSaga'; | |
import { whitelist, STORAGE_NAME } from './persistReducer'; | |
const sagaMonitor = null; | |
const SagaMiddleware = createSagaMiddleware({ | |
sagaMonitor, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { render, waitFor, screen, act } from '@testing-library/react'; | |
import userEvent from '@testing-library/user-event'; | |
import StackedBar from '~/pages/NewReports/Cards/StackedBar'; | |
import { dashData } from './dashData'; | |
let listener = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { configure } from '@testing-library/react'; | |
configure({ asyncUtilTimeout: 15000 }); // here you define the timeout in miliseconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { waitFor, screen } from '@testing-library/react'; | |
describe('Component X', async () => { | |
it('should render the component and to wait for something', async () => { | |
// to mount the component | |
// here you wait for some element/text | |
await waitFor(() => { | |
expect(screen.getByText('some string')).toBeInTheDocument(); | |
}, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { waitFor, screen } from '@testing-library/react'; | |
describe('Component X', () => { | |
it('should render the component and to wait for something', async () => { | |
// to mount the component | |
// here you wait for some element/text | |
await waitFor(() => { | |
expect(screen.getByText('some string')).toBeInTheDocument(); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Define o tema do VSCode | |
"workbench.colorTheme": "Dracula", | |
"workbench.colorCustomizations": { | |
"activityBar.activeBorder": "#7159c1", | |
"activityBar.activeBackground": "#7159c159", | |
"bookmarks.overviewRuler": "#157EFB88", | |
"bookmarks.lineBackground": "#7159c159", | |
"bookmarks.lineBorder": "#7159c1" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Configurações necessárias para funcionamento dos plugins | |
"editor.formatOnSave": false, | |
"[javascript]": { | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true, | |
"source.fixAll.stylelint": true | |
} | |
}, |
NewerOlder