Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 1cfdc3f

Browse files
committed
docs: enhace typescript example
1 parent beac94d commit 1cfdc3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,8 @@ This version is only compatible with rollup 2.x+
3737
In your project's [plugins file](https://on.cypress.io/guides/tooling/plugins-guide.html):
3838

3939
```javascript
40-
/// <reference types="cypress" />
41-
4240
const rollupPreprocessor = require("cypress-rollup-preprocessor");
4341

44-
/**
45-
* @type {Cypress.PluginConfig}
46-
*/
4742
module.exports = (on) => {
4843
on("file:preprocessor", rollupPreprocessor());
4944
};

examples/typescript/cypress/plugins/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
/// <reference types="cypress" />
2+
13
const rollupPreprocessor = require('cypress-rollup-preprocessor')
24

5+
/**
6+
* @type {Cypress.PluginConfig}
7+
*/
38
module.exports = (on) => {
49
on('file:preprocessor', rollupPreprocessor({
510
rollupOptions: require('../../rollup.config'),

0 commit comments

Comments
 (0)