Tips for using Cypress with Meteor

Is anyone using Cypress with Meteor?

Do you have any tips on easing some of the pain point of using it with Meteor such as:

  • Logging in programatically
  • Resetting and seeding the database
2 Likes

maybe here https://dev.to/splitified/test-your-meteor-app-with-docker-jenkins-and-cypress-part-1-12om
and https://guide.meteor.com/testing.html#test-data (same tools : cleaner and faker)

I can’t import xolvio:cleaner in Cypress though, can I? As it is an Atmosphere package.

This works:
import React from 'react';
This doesn’t:
import { resetDatabase } from 'meteor/xolvio:cleaner';

look at this thread : Anybody else had this? "Error: Cannot find module 'meteor/xolvio:cleaner'"

@novigradian

I think both of those questions can be addressed by this comment

Yet a long time has passed since your original question. Maybe now you have some BKMs to share with us newcomers to Cypress ? :wink: