Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b01435e
refactor(docusarus): initial commit for docusaurus migration
MatanBobi Sep 12, 2020
0a1afe6
update gitignore
MatanBobi Sep 12, 2020
015abb9
fix build
MatanBobi Sep 12, 2020
a0bc949
multiple fixes for build
MatanBobi Sep 12, 2020
63fb9b6
update netlify to correct build route
MatanBobi Sep 12, 2020
f9e2241
fix sidebars
MatanBobi Sep 12, 2020
60b1b8a
add website-old temporarily to gitignore
MatanBobi Sep 12, 2020
50d17d3
update README
MatanBobi Sep 13, 2020
ae9626b
CSS Fixes and MultiLingualCodeBlock
MatanBobi Sep 14, 2020
9c53bb4
Fix help page layout
MatanBobi Sep 14, 2020
710e1de
add MarkdownBlock component
MatanBobi Sep 15, 2020
67879fd
Footer fixes
MatanBobi Sep 16, 2020
4ca3db6
fix footer github button
MatanBobi Sep 16, 2020
0ac2cc3
Remove the logos that dont look good on dark mode
MatanBobi Sep 16, 2020
0b83c14
Fix users page and buttons
MatanBobi Sep 16, 2020
df1c893
fix: broken users link from home page
MatanBobi Sep 16, 2020
7dc05f9
refactor: extract showcase and rename js to jsx
MatanBobi Sep 16, 2020
d529784
fix broken build
MatanBobi Sep 16, 2020
0d35c2b
fix: broken links in md
MatanBobi Sep 17, 2020
1886df8
merge master
MatanBobi Oct 2, 2020
341f720
Merge branch 'master' into pr/migrate-ducusaurus
MatanBobi Oct 2, 2020
80ac83b
fix: fix showcase
MatanBobi Oct 2, 2020
fa4e994
update api-events to contain new code tabs
MatanBobi Oct 3, 2020
dccc394
rename all md to mdx
MatanBobi Oct 3, 2020
5258c68
Revert "rename all md to mdx"
MatanBobi Oct 3, 2020
ad1fac6
migrate all md to mdx and change links
MatanBobi Oct 3, 2020
dfbcb46
code review fix - put imports at the top
MatanBobi Oct 3, 2020
859a470
Merge remote-tracking branch 'upstream/master' into pr/migrate-ducusa…
MatanBobi Oct 9, 2020
2eba03b
migrate to npm
MatanBobi Oct 9, 2020
29f89a5
remove unnecessary code and css
MatanBobi Oct 10, 2020
b00a780
Merge remote-tracking branch 'upstream/master'
MatanBobi Oct 13, 2020
590af0e
remove unnecessary code
MatanBobi Oct 13, 2020
33dbab9
remove yarn.lock
MatanBobi Oct 13, 2020
734dcb7
fix: multiple ui fixes and blog sidebar
MatanBobi Oct 28, 2020
a44c70c
fix help appearing in two places
MatanBobi Oct 28, 2020
e819a60
add missing global-cto-forum logo
MatanBobi Oct 28, 2020
e195402
remove docker and add code snippets for mdx
MatanBobi Nov 1, 2020
e94c990
Merge remote-tracking branch 'upstream/master'
MatanBobi Nov 1, 2020
49ce488
Merge branch 'master' into pr/migrate-ducusaurus
MatanBobi Nov 1, 2020
cf466ea
pull the website directory outside
MatanBobi Nov 3, 2020
ef64020
fix light background in stripes
MatanBobi Nov 3, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
multiple fixes for build
  • Loading branch information
MatanBobi committed Sep 12, 2020
commit a0bc9493fbf8cfaf656a62950d7a1adf195c06bc
4 changes: 3 additions & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
id: intro
title: Introduction
slug: /
---

The [`@testing-library`][npm] family of packages helps you test UI components in
Expand Down Expand Up @@ -45,7 +46,8 @@ Testing Library encourages you to avoid testing
[implementation details](https://kentcdodds.com/blog/testing-implementation-details)
like the internals of a component you're testing (though it's still possible).
[The Guiding Principles](/docs/guiding-principles) of this library emphasize a
focus on tests that closely resemble how your web pages are interacted by the users.
focus on tests that closely resemble how your web pages are interacted by the
users.

You may want to avoid following implementation details:

Expand Down
13 changes: 11 additions & 2 deletions docs/marko-testing-library/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ title: API
as these methods:

- [`render`](#render)
- [`render` Options](#render-options)
- [`container`](#container)
- [`render` Result](#render-result)
- [`...queries`](#queries)
- [`debug`](#debug)
- [`rerender`](#rerender)
- [`emitted`](#emitted)
- [`container`](#container-1)
- [`cleanup`](#cleanup)

---
Expand Down Expand Up @@ -207,8 +215,9 @@ expect(emitted()).toMatchInlineSnapshot(`
### `container`

The containing DOM node of your rendered Marko Component. For server side tests
this is a [JSDOM.fragment](), and for client side tests this will be whatever is
passed as the `container` render option.
this is a [JSDOM.fragment](https://github.com/jsdom/jsdom#fragment), and for
client side tests this will be whatever is passed as the `container` render
option.

> Tip: To get the root element of your rendered element, use
> `container.firstChild`.
Expand Down
3 changes: 0 additions & 3 deletions docs/react-native-testing-library/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ with this file in all your imports. See
[below](#configuring-jest-with-test-utils) for a way to make your test util file
accessible without using relative paths.

The example below sets up data providers using the
[`wrapper`](api-render.md#render-options) option to `render`.

```diff
// my-component.test.js
- import { render, fireEvent } from '@testing-library/react-native';
Expand Down
Loading