What is the difference between 'it' and 'test' in Jest?
What you write:
describe('yourModule', () => {
test('if it does this thing', () => {});
test('if it does the other thing', () => {});
});| { | |
| "recommendations": [ | |
| "aaron-bond.better-comments", | |
| "alefragnani.project-manager", | |
| "aslamanver.vsc-export", | |
| "bradlc.vscode-tailwindcss", | |
| "chadalen.vscode-jetbrains-icon-theme", | |
| "codezombiech.gitignore", | |
| "dbaeumer.vscode-eslint", | |
| "enkia.tokyo-night", |
| # THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG | |
| # PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT. | |
| # | |
| # | |
| # Libraries and infrastructure | |
| sudo apt update -y | |
| sudo apt install -y \ | |
| docker.io docker-buildx \ | |
| build-essential pkg-config autoconf bison rustc cargo clang \ |
| { | |
| "recommendations": [ | |
| // BASE | |
| // ==================================== | |
| "alefragnani.project-manager", | |
| "sleistner.vscode-fileutils", | |
| // MY EXTENSIONS | |
| "GitHub.github-vscode-theme", | |
| "PKief.material-icon-theme", |
| Categories: | |
| 1xx - Informational | |
| 2xx - Success | |
| 3xx - Redirection | |
| 4xx - Client Error | |
| 5xx - Server Error | |
| Status Code Definitions: |
(Steps taken from: https://www.baeldung.com/x-509-authentication-in-spring-security)
All passwords: changeit
openssl req -x509 -sha256 -days 3650 -newkey rsa:4096 -keyout rootCA.key -out rootCA.crt
CREATE TABLE "table_name" (
"id" uuid DEFAULT uuid_generate_v4(),
"created_at" TIMESTAMPTZ NOT NULL DEFAULT NOW(),
"updated_at" TIMESTAMPTZ NOT NULL DEFAULT NOW(),
PRIMARY KEY ("column", "other_column"),
UNIQUE ("column", "other_column"),
FOREIGN KEY ("column") REFERENCES "other_table_name"("column"),
FOREIGN KEY ("column") REFERENCES "other_table_name"("column") ON DELETE CASCADE,| // Get Posts | |
| $posts = get_posts([ | |
| 'post_type' => 'press-release', | |
| 'posts_per_page' => 25, | |
| 'category' => 4, | |
| ]); | |
| foreach($posts as $post){ | |
| setup_postdata($post); |
| function defer_parsing_of_js($url) | |
| { | |
| if (is_admin()) return $url; //don't break WP Admin | |
| if (false === strpos($url, '.js')) return $url; | |
| if (strpos($url, 'jquery.js')) return $url; | |
| return str_replace(' src', ' defer src', $url); | |
| } | |
| add_filter('script_loader_tag', 'defer_parsing_of_js', 10); |