chore: convert mocha tests and test helpers to esmodules (#6333)

* chore: change goog.module to goog.declareModuleId

* chore: change test helper exports to esmod exports

* chore: change test helpers to use esmodule imports

* chore: convert imports of test helpers to esmodule imports

* chore: convert other imports in tests to esm imports

* fix: make imports use built files

* chore: add blockly imports to a bunch of tests

* fix: reference Blockly.Blocks instead of Blocks'

* fix: properly import generators

* chore: fix lint

* chore: cleanup from rebase

* chore: cleanup from rebase

* chore: fix blocks tests
This commit is contained in:
Beka Westberg
2022-08-10 21:54:02 +00:00
committed by GitHub
parent f032151cd9
commit 96758fedd4
74 changed files with 324 additions and 359 deletions

View File

@@ -4,10 +4,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('Blockly.test.connection');
goog.declareModuleId('Blockly.test.connection');
const {createGenUidStubWithReturns, sharedTestSetup, sharedTestTeardown, workspaceTeardown} = goog.require('Blockly.test.helpers.setupTeardown');
const {defineRowBlock, defineStatementBlock, defineStackBlock} = goog.require('Blockly.test.helpers.blockDefinitions');
import {createGenUidStubWithReturns, sharedTestSetup, sharedTestTeardown, workspaceTeardown} from './test_helpers/setup_teardown.js';
import {defineRowBlock, defineStatementBlock, defineStackBlock} from './test_helpers/block_definitions.js';
suite('Connection', function() {