Skip to content

Commit 5e032f6

Browse files
committed
add skipped examples for import and require
1 parent 62d4472 commit 5e032f6

File tree

6 files changed

+53
-11
lines changed

6 files changed

+53
-11
lines changed

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"trailingComma": "all",
33
"tabWidth": 2,
44
"semi": false,
5-
"singleQuote": true
5+
"singleQuote": true,
6+
"printWidth": 70
67
}

cypress/integration/imports.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Testing imports
2+
3+
A fiddle can have 3rd party imports on a single line
4+
5+
<!-- SKIP https://github.com/bahmutov/cypress-markdown-preprocessor/issues/77 -->
6+
<!-- fiddle.skip Map and its functions -->
7+
8+
```js
9+
import { map, its } from 'cypress-should-really'
10+
const getEachName = map(its('name'))
11+
const people = [{ name: 'joe' }, { name: 'mary' }]
12+
const names = getEachNames(people)
13+
expect(names).to.deep.equal(['joe', 'mary'])
14+
```
15+
16+
<!-- fiddle.end -->

cypress/integration/require.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Testing require
2+
3+
A fiddle can require 3rd party modules
4+
5+
<!-- SKIP https://github.com/bahmutov/cypress-markdown-preprocessor/issues/78 -->
6+
<!-- fiddle.skip Map and its functions -->
7+
8+
```js
9+
const { map, its } = require('cypress-should-really')
10+
const getEachName = map(its('name'))
11+
const people = [{ name: 'joe' }, { name: 'mary' }]
12+
const names = getEachNames(people)
13+
expect(names).to.deep.equal(['joe', 'mary'])
14+
```
15+
16+
<!-- fiddle.end -->

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@types/node": "14.14.14",
4141
"cypress": "9.1.1",
4242
"cypress-expect": "2.5.1",
43+
"cypress-should-really": "^1.4.0",
4344
"prettier": "2.2.1",
4445
"semantic-release": "18.0.1"
4546
}

renovate.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"extends": [
3-
"config:base"
4-
],
2+
"extends": ["config:base"],
53
"automerge": true,
64
"prHourlyLimit": 2,
75
"updateNotScheduled": false,
@@ -11,17 +9,14 @@
119
"every weekend"
1210
],
1311
"masterIssue": true,
14-
"labels": [
15-
"type: dependencies",
16-
"renovate"
17-
],
12+
"labels": ["type: dependencies", "renovate"],
1813
"packageRules": [
1914
{
20-
"packagePatterns": [
21-
"*"
22-
],
15+
"packagePatterns": ["*"],
2316
"excludePackagePatterns": [
2417
"cypress",
18+
"cypress-expect",
19+
"cypress-should-really",
2520
"chokidar",
2621
"temp-write",
2722
"@textlint/markdown-to-ast",

0 commit comments

Comments
 (0)