🚀 add emojis
This commit is contained in:
2
packages/action/__tests__/__snapshots__/.gitignore
vendored
Normal file
2
packages/action/__tests__/__snapshots__/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -1,5 +1,17 @@
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import { generateContributionSnake } from "../generateContributionSnake";
|
||||
|
||||
generateContributionSnake("platane").then((buffer) => {
|
||||
process.stdout.write(buffer);
|
||||
});
|
||||
const dir = path.resolve(process.cwd(), "__tests__", "__snapshots__");
|
||||
|
||||
try {
|
||||
fs.mkdirSync(dir);
|
||||
} catch (err) {}
|
||||
|
||||
(async () => {
|
||||
const output = path.join(dir, "out.gif");
|
||||
const buffer = await generateContributionSnake("platane");
|
||||
|
||||
console.log("💾 writing to", dir);
|
||||
fs.writeFileSync(output, buffer);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user