Skip to content

Commit

Permalink
DASH-860 fix fiojs for node 17 (#14)
Browse files Browse the repository at this point in the history
* DASH-860 fix fiojs for node 17

* DASH-860 update package.json

* DASH-860 update package.json

* DASH-860 review fix
  • Loading branch information
sardonyxwt authored Sep 17, 2024
1 parent 5d4a225 commit f42bff7
Show file tree
Hide file tree
Showing 41 changed files with 29,733 additions and 1,668 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ docs-build/
#cypress artifacts
cypress/screenshots/
cypress/videos/
cypress/downloads/
reports/
coverage/

#editors
.idea
.vscode
.fleet
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ env:
sudo: false
language: node_js
node_js:
- '10.0.0'
- '18.15.0'
before_install:
- npm i -g npm@6.4.1
- npm i -g npm@9.6.7
- yarn global add typescript
- yarn global add webpack
- yarn global add webpack
before_script:
- source ./scripts/is_latest.sh
script:
Expand All @@ -17,14 +17,14 @@ script:
deploy:
- provider: script
skip_cleanup: true
script:
script:
- ./scripts/publish-edge.sh
on:
on:
branch: develop
- provider: script
skip_cleanup: true
script:
script:
- ./scripts/publish-tag.sh $PUBLISH_NPM_LATEST_FROM
on:
on:
tags: true
condition: $TRAVIS_IS_LATEST_TAG = true # sourced from ./scripts/is_latest.sh
20 changes: 20 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineConfig } from "cypress";

export default defineConfig({
video: true,
fixturesFolder: false,
reporter: "mochawesome",

reporterOptions: {
reportDir: "reports",
overwrite: false,
},

userAgent: "Chrome cypress",

e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});
12 changes: 0 additions & 12 deletions cypress.json

This file was deleted.

File renamed without changes.
37 changes: 37 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/// <reference types="cypress" />
// ***********************************************
// This example commands.ts shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
//
// declare global {
// namespace Cypress {
// interface Chainable {
// login(email: string, password: string): Chainable<void>
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }
20 changes: 20 additions & 0 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ***********************************************************
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands';

// Alternatively you can use CommonJS syntax:
// require('./commands')
Loading

0 comments on commit f42bff7

Please sign in to comment.