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
| describe('Something about the tests here', function () { | |
| it('tests one thing', function () { | |
| }); | |
| }); |
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
| <!-- mount() --> | |
| <Foo> | |
| <div> | |
| <div className="fooClass"> | |
| <Bar> | |
| <div> | |
| <div className="barClass"> | |
| Something here | |
| </div> | |
| </div> |
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
| <!-- shallow() --> | |
| <div> | |
| <div className="fooClass"> | |
| <Bar /> | |
| </div> | |
| </div> |
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, mount, shallow } from 'enzyme'; | |
| import EditDatasource from './EditDatasource'; | |
| import { MemoryRouter } from 'react-router-dom'; | |
| describe('tests for EditDatasource', function () { | |
| it.only('changes the datasource.type when a select button is clicked', function () { | |
| const wrap = mount( | |
| <MemoryRouter> | |
| <EditDatasource |
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, mount, shallow } from 'enzyme'; | |
| import EditDatasource from './EditDatasource'; | |
| import { MemoryRouter } from 'react-router-dom'; | |
| describe('tests for EditDatasource', function () { | |
| it.only('changes the datasource.type when a select button is clicked', function () { | |
| const wrap = mount( | |
| <MemoryRouter> | |
| <EditDatasource |
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, mount, shallow } from 'enzyme'; | |
| import EditDatasource from './EditDatasource'; | |
| describe('tests for EditDatasource', function () { | |
| it.only('changes the datasource.type when a select button is clicked', function () { | |
| const wrap = mount( | |
| <EditDatasource | |
| notify={notify} | |
| navigate={navigate} |
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, mount, shallow } from 'enzyme'; | |
| import { Foo } from 'Foo'; | |
| describe.only('Test for Foo component', function () { | |
| it('can mount Foo component', function () { | |
| const wrap = mount( | |
| <Foo /> | |
| ); | |
| console.log(wrap.find('.someCustomClass').hostNodes().debug()); |
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, mount, shallow } from 'enzyme'; | |
| import { Foo } from 'Foo'; | |
| describe.only('Test for Foo component', function () { | |
| it('can mount Foo component', function () { | |
| const wrap = mount( | |
| <Foo /> | |
| ); | |
| console.log(wrap.find('.someCustomClass').debug()); |
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, mount, shallow } from 'enzyme'; | |
| import { Foo } from 'Foo'; | |
| describe.only('Test for Foo component', function () { | |
| it('can mount Foo component', function () { | |
| const wrap = mount( | |
| <Foo /> | |
| ); |
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'; | |
| export function Foo() { | |
| return <div> | |
| <div className="fooClass"> | |
| <Bar className="someCustomClass" /> | |
| </div> | |
| </div>; | |
| } |