Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 test/cli-next.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function shell(cmd, dir) {
}

// skip for now until the new way of testing the next aio-cli version is ready
it.skip("should install (next) version of aio-cli and run developer experience", async function() {
it("should install (next) version of aio-cli and run developer experience", async function() {

shell(`
npm install --no-save @adobe/aio-cli-next
Expand Down
28 changes: 28 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,32 @@ describe("integration tests", function() {
aio asset-compute test-worker
`);
}).timeout(600000);

it("should install latest version of tools and run developer experience", async function() {
shell(`
npm install -g @adobe/aio-cli@latest
aio info
`);

cd("project");

shell(`aio app:init --no-login -i ../../test/console.json -t @adobe/generator-app-asset-compute@1.0.2`);
shell('ls');
assert(fs.existsSync(path.join("src", "dx-asset-compute-worker-1", "actions", "worker", "index.js")));

const testLogsFile = path.join("build", "test-results", "test-worker", "test.log");
assert.ok(!fs.existsSync(testLogsFile));
shell(`
aio app test
`);
assert.ok(fs.existsSync(testLogsFile));
const testLogs = fs.readFileSync(testLogsFile);
assert.ok(testLogs.includes('Validation successful'));

// test as aio plugin
shell(`
aio plugins:install @adobe/aio-cli-plugin-asset-compute
aio asset-compute test-worker
`);
}).timeout(600000);
});
4 changes: 2 additions & 2 deletions test/install.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ function shell(cmd, dir) {
execSync(cmd, {cwd: dir, stdio: 'inherit'});
}

it.skip("should install (local) version of aio-cli and run developer experience", async function() {
it("should install (local) version of aio-cli and run developer experience", async function() {
shell(`
npm install --no-save @adobe/aio-cli
npm install --no-save @adobe/aio-cli@latest
npx aio info
mkdir project
cd project
Expand Down