Caching node_modules in Jenkins

This is a basic implementation. For true CI/CD, it's advised that you review how this integrates into your process carefully. #!/usr/bin/env bash FILECHECKSUM=$(sha1sum yarn.lock|grep -o '^\S*') echo "yarn.lock hash is ${FILECHECKSUM}" CHECKSUM_NODE_MODULES=${JENKINS_HOME}/"${FILECHECKSUM}_node_modules" if [ -f…

Debugging Vue Jest unit tests in VSCode

I converted the cli option to just debug. Add these to your files. The prelaunch task was needed for me since I kept running into cached file issues, but it may not be required for everyone so try without that flag too. The i flag as noted in the stackoverflow…

Pytest suite as a package

For bundling a pytest suite into a python cli tool or executable package for Docker. The issue is that pytest does not respect the folder directory when called using pytest.main. Assuming a standard folder structure, create a main.py for the entry point to call. Have the main entry…

Figuring out snapshot testing with Jest

Recently, I read about Jest while looking up snapshot testing for a project at work. However, I wasn't too sure just what this is. This blog post documents my own confusion and attempt at figuring out what Jest is and what the pros/cons of it are compared to traditional…

Removing Chocolatey Pro

I recently had my Choccolatey Pro account expire. I didn't find that much use for it over the last year, so I chose not to renew my subscription. When installing the pro version of Chocolatey I had already noticed a lot of not user-friendly aspects to the process. I needed…

Appium Won't Run from xcodebuild failure - Missing XCUICoordinate.h

If you've been getting this error on OSX Appium when running tests for iOS: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "ENOENT: no such file or directory, open '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/PrivateHeaders/XCTest/XCUICoordinate.h'"…