revert: refactor: allow ES import for cloud string if package type is module

This reverts commit 0225340ccb.
This commit is contained in:
Manuel
2021-11-10 16:26:20 +01:00
committed by GitHub
parent 611bd9baaa
commit b64640c570
4 changed files with 2 additions and 18 deletions

View File

@@ -39,14 +39,6 @@ describe('Cloud Code', () => {
});
});
it('can load cloud code as a module', async () => {
process.env.npm_package_type = 'module';
await reconfigureServer({ cloud: './spec/cloud/cloudCodeModuleFile.js' });
const result = await Parse.Cloud.run('cloudCodeInFile');
expect(result).toEqual('It is possible to define cloud code in a file.');
delete process.env.npm_package_type;
});
it('can create functions', done => {
Parse.Cloud.define('hello', () => {
return 'Hello world!';