Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tests): Add a test to validate scripts/migration/renamings.js #5980

Merged
merged 17 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/migration/renamings.json5
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
oldName: 'Blockly.blocks.variablesDynamic',
newName: 'Blockly.libraryBlocks.variablesDynamic',
},
]
],

'7.20211209.0': [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* (renamings-schema.json).
*/

/* global require __dirname process */
cpcallen marked this conversation as resolved.
Show resolved Hide resolved

const JsonSchema = require('@hyperjump/json-schema');
const JSON5 = require('json5');
const fs = require('fs/promises');
Expand Down
4 changes: 4 additions & 0 deletions tests/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ run_test_command "build-debug" "npm run build-debug"
# TODO(5621): Re-enable this test once typings generation is fixed.
# run_test_command "typings" "npm run typings"

# Run renaming validation test.
run_test_command "renamings" "tests/migration/validate-renamings.js"

# Check the sizes of built files for unexpected growth.
run_test_command "metadata" "tests/scripts/check_metadata.sh"

Expand All @@ -77,6 +80,7 @@ run_test_command "package" "npm run package"
# Run Node tests.
run_test_command "node" "./node_modules/.bin/mocha tests/node --config tests/node/.mocharc.js"


BeksOmega marked this conversation as resolved.
Show resolved Hide resolved
# Attempt advanced compilation of a Blockly app.
run_test_command "advanced_compile" "npm run test:compile:advanced"

Expand Down