23
loading...
This website collects cookies to deliver better user experience
Ctrl+C, Ctrl+P
can be a good tool for speed in some cases, but it won't help much when you're expected to quickly code for yourself in a fast-paced, high pressure situation. npm install --save-dev @testing-library/react
// It's beneficial to know terminal basics
// like npm, git, etc
test('loads and displays greeting', () => {
render(<Fetch url="/greeting" />)
expect(screen.getByText('Load Greeting')).toBeInTheDocument()
})
// Without looking, can you write a complete test spec
// file from scratch?
import React, { useState } from 'react';
import IconButton from '@mui/material/IconButton';
import SplitRow from 'components/layout/SplitRow';
// Manually typing imports helps understand and remember
// libraries and project structure