CharacterOverflow / factorio-analytics

A library that can benchmark and export bulk data about a given Blueprint from Factorio
GNU General Public License v3.0
6 stars 1 forks source link

Unit Tests don't work correctly #2

Open CharacterOverflow opened 1 year ago

CharacterOverflow commented 1 year ago

Noticed that during unit tests, the initialization function is trying to copy files to Projects/factory/scenario instead of Projects/factorio-analytics/factory/scenario.

I understand that it's likely something to do with how I'm building the paths with __dirname and relative operators like ../, but I am unsure if there's a better way to do this.

I also need to look into learning Jest better, so I can make actual unit tests instead of just 1 generic test for 'is it working'

CharacterOverflow commented 10 months ago

Going to just make my own scripts for this instead of trying to use a package - will be easier in the long run