
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
@app-config/cypress
Advanced tools
This package provides utilities to use App Config with Cypress.io.
Install:
yarn add -D @app-config/cypress
Add to ./cypress/support/index.js
:
require('@app-config/cypress').register();
In your integration tests:
// this import will import the types for setAppConfig!
import '@app-config/cypress';
describe('Config Loading', () => {
it('should mock the configuration value', () => {
cy.setAppConfig({
foo: 'https://overwritten.com',
bar: 'some configuration value',
});
// be sure to setAppConfig before calling visit()
cy.visit('/');
});
});
Use the Webpack Preprocessor with the App Config Plugin.
Cypress only allows one preprocessor at once, so we can't provide a preprocessor to do this.
Example ./cypress/plugins/index.js
:
const webpackPreprocessor = require('@cypress/webpack-preprocessor');
const { default: AppConfigPlugin } = require('@app-config/webpack');
module.exports = (on) => {
const options = {
webpackOptions: {
mode: 'development',
module: {
rules: [
{ test: AppConfigPlugin.regex, use: { loader: AppConfigPlugin.loader } },
{
test: /\.jsx?$/,
exclude: [/node_modules/],
use: [
{
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
},
},
],
},
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
plugins: [new AppConfigPlugin()],
},
};
on('file:preprocessor', webpackPreprocessor(options));
};
This allows you to use @app-config/main
imports in your tests, hassle free.
v2.3.3
Adds --include-no-environment
for app-config validate
CLI. Fails when no config is found.
Fixes Webpack bug when using $extends
to a file that's not a standard app-config filename.
FAQs
Cypress testing plugin for @app-config
The npm package @app-config/cypress receives a total of 53 weekly downloads. As such, @app-config/cypress popularity was classified as not popular.
We found that @app-config/cypress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.