File tree Expand file tree Collapse file tree 13 files changed +13
-54
lines changed Expand file tree Collapse file tree 13 files changed +13
-54
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,5 @@ import { defineConfig } from 'cypress';
33export default defineConfig ( {
44 e2e : {
55 baseUrl : 'http://localhost:8000' ,
6- setupNodeEvents ( on , config ) {
7- // implement node event listeners here
8- } ,
96 } ,
107} ) ;
Original file line number Diff line number Diff line change 1- import exp from 'constants' ;
2- import { response } from 'express' ;
3-
41const catsSchema = {
52 $schema : 'http://json-schema.org/draft-04/schema#' ,
63 type : 'array' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1414// ***********************************************************
1515
1616// Import commands.js using ES2015 syntax:
17- import './commands' ;
17+ // import './commands';
1818
1919import chaiJsonSchema from 'chai-json-schema' ;
2020chai . use ( chaiJsonSchema ) ;
Original file line number Diff line number Diff line change 1- import fs from 'node:fs' ;
2- import path from 'node:path' ;
31import { http , HttpResponse } from 'msw' ;
42
53function handler ( pathName : string ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import sharp from 'sharp';
77
88function handler ( pathName : string ) {
99 return [
10- http . get ( `/${ pathName } ` , ( { request } ) => {
10+ http . get ( `/${ pathName } ` , ( ) => {
1111 return HttpResponse . text (
1212 `<body style="background-color: #383838; color:white">
1313 <div style="text-align:center; padding:50px 0px 0px 0px">
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function handler(pathName: string) {
2727 } ,
2828 } ) . disable ( [ 'link' , 'image' ] ) ;
2929 return [
30- http . get ( `/${ pathName } ` , ( { request } ) => {
30+ http . get ( `/${ pathName } ` , ( ) => {
3131 return HttpResponse . text (
3232 `<body style="background-color: #383838; color:white">
3333 <div style="text-align:center; padding:50px 0px 0px 0px">
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { db } from '../../models/db.js';
22import { prefix } from '../../utilities/env.js' ;
33
44// Example of msw data auto REST handler generation
5- function handler ( pathName : string ) {
5+ function handler ( ) {
66 // Need to add a prefix here for automatic REST handler generation to a specific path
77 return [ ...db . post . toHandlers ( 'rest' , prefix ) ] ;
88}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { db } from '../../models/db.js';
22import { prefix } from '../../utilities/env.js' ;
33
44// Example of msw data auto REST handler generation
5- function handler ( pathName : string ) {
5+ function handler ( ) {
66 // Need to add a prefix here for automatic REST handler generation to a specific path
77 return [ ...db . user . toHandlers ( 'rest' , prefix ) ] ;
88}
Original file line number Diff line number Diff line change 1- import { faker } from '@faker-js/faker' ;
21import { primaryKey } from '@mswjs/data' ;
32
43export const post = {
You can’t perform that action at this time.
0 commit comments