revert: refactor: allow ES import for cloud string if package type is module (#7691)

This reverts commit 0225340ccb.
This commit is contained in:
Manuel
2021-11-10 16:49:47 +01:00
committed by GitHub
parent 6962bfac65
commit 200d4ba9a5
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!';

View File

@@ -1,3 +0,0 @@
Parse.Cloud.define('cloudCodeInFile', () => {
return 'It is possible to define cloud code in a file.';
});