View syntax_error_output
This file contains 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
7 | const wrap = mount( | |
8 | <Foo /> | |
> 9 | ).; | |
| ^ |
View js_blob_output.js
This file contains 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
Chrome 71.0.3578 (Mac OS X 10.14.0) ERROR | |
{ | |
"message": "Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js):\nSyntaxError: Unexpected token (9:10)\n\n\u001b[0m \u001b[90m 7 | \u001b[39m \u001b[36mconst\u001b[39m wrap \u001b[33m=\u001b[39m mount(\n \u001b[90m 8 | \u001b[39m \u001b[33m<\u001b[39m\u001b[33mFoo\u001b[39m \u001b[33m/\u001b[39m\u001b[33m>\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 9 | \u001b[39m )\u001b[33m.\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m | \u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 10 | \u001b[39m \u001b[90m// console.log(wrap.find('.someCustomClass').hostNodes().debug());\u001b[39m\n \u001b[90m 11 | \u001b[39m\n \u001b[90m 12 | \u001b[39m expect(wrap\u001b[33m.\u001b[39mfind(\u001b[32m'.someCustomClass'\u001b[39m)\u001b[33m.\u001b[39mhostNodes())\u001b[33m.\u001b[39mto\u001b[33m.\u001b[39mhave\u001b[33m.\u001b[39mlength(\u001b[35m1\u001b[39m)\u001b[33m; |
View host_nodes.html
This file contains 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
<div className="someCustomClass"> | |
<h1> | |
Baz is rendered | |
</h1> | |
</div> |
View focused_html.html
This file contains 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
<Bar className="someCustomClass"> | |
<div> | |
<div className="barClass"> | |
<Baz className="someCustomClass"> | |
<div> | |
<div className="someCustomClass"> | |
<h1> | |
Baz is rendered | |
</h1> | |
</div> |
View full_output.html
This file contains 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
<Bar className="someCustomClass"> | |
<div> | |
<div className="barClass"> | |
<Baz className="someCustomClass"> | |
<div> | |
<div className="someCustomClass"> | |
<h1> | |
Baz is rendered | |
</h1> | |
</div> |
View only_example.js
This file contains 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.only('Something about the tests here', function () { | |
it('tests one thing', function () { | |
}); | |
}); |
View basic_test.js
This file contains 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 () { | |
}); | |
}); |
View mount_example.html
This file contains 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> |
View shallow_example.html
This file contains 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> |
View EditDatasource.spec.js
This file contains 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 |
NewerOlder